FleetTrack API
Build powerful integrations with our comprehensive REST API. Get access to real-time vehicle tracking, trip history, analytics, and more.
Quick Start Guide
Get up and running with the API in just 3 simple steps
Get Your API Key
Navigate to your account settings and generate a new API key for your application
Make Your First Request
Use your API key to authenticate and start making requests to our endpoints
Build Your Integration
Use our comprehensive documentation and SDKs to build your custom integration
Code Examples
Get started with these example requests
// JavaScript/Node.js Example
const apiKey = 'your_api_key';
const response = await fetch('https://api.fleettrack.com/v1/vehicles', {
headers: {
'Authorization': `Bearer ${apiKey}`,
'Content-Type': 'application/json'
}
});
const data = await response.json();
console.log(data);API Reference
Core endpoints for vehicle and fleet management
/api/v1/vehiclesRetrieve all vehicles in your fleet with optional filtering and pagination
{
"data": [
{
"id": "veh_123",
"name": "Delivery Truck 1",
"status": "active",
"location": {
"latitude": 37.7749,
"longitude": -122.4194
}
}
],
"meta": {
"total": 50,
"page": 1,
"perPage": 20
}
}/api/v1/vehiclesAdd a new vehicle to your fleet with device assignment and configuration
{
"name": "Delivery Truck 2",
"type": "truck",
"licensePlate": "ABC-1234",
"deviceId": "dev_456",
"driverId": "drv_789"
}/api/v1/vehicles/{id}Retrieve detailed information about a specific vehicle including current status
{
"data": {
"id": "veh_123",
"name": "Delivery Truck 1",
"type": "truck",
"licensePlate": "ABC-1234",
"status": "active",
"lastSeen": "2026-02-07T12:00:00Z",
"odometer": 150000,
"fuelLevel": 75
}
}/api/v1/tripsGet trip history with routes, duration, distance, and driver information
{
"data": [
{
"id": "trip_456",
"vehicleId": "veh_123",
"driverId": "drv_789",
"startedAt": "2026-02-07T08:00:00Z",
"endedAt": "2026-02-07T12:00:00Z",
"distance": 150.5,
"duration": 14400
}
]
}Authentication
API Keys
Generate API keys in your account settings. Each key can be scoped with specific permissions.
JWT Tokens
For applications with user authentication, use OAuth2 flow to obtain JWT tokens.
Webhook Signatures
Webhook events are signed with a secret key for security verification.
Rate Limits
Free Plan
Requests are calculated based on your plan tier
Pro Plan
Requests are calculated based on your plan tier
Enterprise Plan
Requests are calculated based on your plan tier
Official SDKs
Download and install our official SDKs
JavaScript/TypeScript
v2.1.0
Python
v1.8.0
Go
v1.2.0
PHP
v1.0.0