FleetSage Public API
Integre seus sistemas com a plataforma FleetSage e acesse dados de rastreamento em tempo real
Prerequisites
An active FleetSage account
You need an active FleetSage account with a username and password.
Access to the system
Log in at app.fleetsage.ai
Generate an API key
Go to Settings → API Keys no menu lateral e gere sua chave de acesso.
Como Gerar sua API Key
1. Acesse a Página de API Keys
Log in at app.fleetsage.ai
Ou acesse diretamente: app.fleetsage.ai/settings/api-keys
2. Clique em "Gerar Nova API Key"
Preencha as informações:
- API key name: Ex: "Integração ICX", "Sistema Externo"
- Valid until: Escolha entre 30 dias, 90 dias, 1 ano ou 2 anos
3. Confirme sua Senha
Por segurança, você precisará confirmar sua senha do FleetSage para gerar a API Key.
4. Copie suas Credenciais
Após a geração, você receberá:
fsk_xxxxxxxxxxxxxsecret_xxxxxxxxxxQuick start
Make your first request
curl --location 'https://app.fleetsage.ai/api/public/tracking/vehicles?limit=10' \ --header 'X-API-Key: SUA_API_KEY:SEU_API_SECRET'
Expected response
{
"success": true,
"data": [
{
"vehicle_id": "123e4567-e89b-12d3-a456-426614174000",
"plate": "ABC1234",
"brand": "Volkswagen",
"model": "Delivery 9.170",
"rastreador": "123456789012345",
"speed": "65.50",
"latitude": "-23.5505199",
"longitude": "-46.6333094",
"gps_time": "2025-12-17T10:30:00Z",
"lastupdate": "2025-12-17T10:30:05Z",
"status": "moving",
"direction": 180,
"odometer": 125430,
"ignition": true
}
],
"count": 1,
"tenant": "Sua Empresa",
"timestamp": "2025-12-17T10:35:00Z"
}Endpoints Disponíveis
/api/public/tracking/vehiclesReturns tracking data for every vehicle
Query parameters:
limitintegerNumber of records (1-1000, default: 100)vehicle_iduuidFilter by vehicle IDplatestringFilter by plate (partial match)imeistringFilter by tracker IMEIstart_datedatetimeStart date (ISO 8601)end_datedatetimeEnd date (ISO 8601)/api/public/tracking/vehicles/{vehicle_id}Returns data for a specific vehicle
/api/public/vehiclesLists vehicles with basic information
Query parameters:
limitintegerNumber of records (default: 100)offsetintegerOffset for pagination (default: 0)statusstringFilter by status (active/inactive/maintenance)/api/public/usage/statsUsage statistics for your API key
Query parameters:
periodstringPeriod: 1h, 12h, 24h, 7d, 30d (default: 24h)Dados Disponíveis
For each vehicle you receive:
| Field | Description | Example |
|---|---|---|
vehicle_id | Unique vehicle ID | "123e4567-e89b-12d3..." |
plate | Vehicle plate | "ABC1234" |
brand | Vehicle make | "Volkswagen" |
model | Vehicle model | "Delivery 9.170" |
rastreador | Tracker IMEI | "123456789012345" |
speed | Speed in km/h | "65.50" |
latitude | Latitude (7 decimal places) | "-23.5505199" |
longitude | Longitude (7 decimal places) | "-46.6333094" |
gps_time | GPS date and time | "2025-12-17T10:30:00Z" |
status | Vehicle status | "moving", "stopped", "idle" |
ignition | Ignition status | true / false |
odometer | Odometer in km | 125430 |
Managing your API keys
View and manage
Acesse app.fleetsage.ai/settings/api-keys para:
- See all your active API keys
- Check the expiry date
- Look up usage statistics
- See when it was last used
- Copy existing API keys
Limites e Segurança
Security best practice:
HTTP status codes
| Code | Meaning | Action |
|---|---|---|
| 200 | Success | Process the data as normal |
| 401 | Invalid API key | Check your credentials |
| 403 | Access denied | Check the allowed IP and endpoint |
| 404 | Resource not found | Check the URL and parameters |
| 429 | Rate limit exceeded | Wait an hour or reduce the frequency |
| 500 | Server error | Try again in a few minutes |
Need help?
Nossa equipe está pronta para ajudar você a integrar com a API FleetSage.