FleetSage Public API

Integre seus sistemas com a plataforma FleetSage e acesse dados de rastreamento em tempo real

Prerequisites

1

An active FleetSage account

You need an active FleetSage account with a username and password.

2

Access to the system

Log in at app.fleetsage.ai

3

Generate an API key

Go to Settings → API Keys no menu lateral e gere sua chave de acesso.

Important: Você deve estar logado no sistema FleetSage para gerar e gerenciar suas API Keys. A geração é feita através da interface web em Settings → API Keys.

Como Gerar sua API Key

1. Acesse a Página de API Keys

Log in at app.fleetsage.ai

Settings → API Keys

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á:

API Key:fsk_xxxxxxxxxxxxx
API Secret:secret_xxxxxxxxxx
WARNING: O API Secret é exibido apenas uma vez! Copie e guarde em local seguro imediatamente.

Quick 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

GET/api/public/tracking/vehicles

Returns tracking data for every vehicle

Query parameters:

limitintegerNumber of records (1-1000, default: 100)
vehicle_iduuidFilter by vehicle ID
platestringFilter by plate (partial match)
imeistringFilter by tracker IMEI
start_datedatetimeStart date (ISO 8601)
end_datedatetimeEnd date (ISO 8601)
GET/api/public/tracking/vehicles/{vehicle_id}

Returns data for a specific vehicle

GET/api/public/vehicles

Lists vehicles with basic information

Query parameters:

limitintegerNumber of records (default: 100)
offsetintegerOffset for pagination (default: 0)
statusstringFilter by status (active/inactive/maintenance)
GET/api/public/usage/stats

Usage statistics for your API key

Query parameters:

periodstringPeriod: 1h, 12h, 24h, 7d, 30d (default: 24h)

Dados Disponíveis

For each vehicle you receive:

FieldDescriptionExample
vehicle_idUnique vehicle ID"123e4567-e89b-12d3..."
plateVehicle plate"ABC1234"
brandVehicle make"Volkswagen"
modelVehicle model"Delivery 9.170"
rastreadorTracker IMEI"123456789012345"
speedSpeed in km/h"65.50"
latitudeLatitude (7 decimal places)"-23.5505199"
longitudeLongitude (7 decimal places)"-46.6333094"
gps_timeGPS date and time"2025-12-17T10:30:00Z"
statusVehicle status"moving", "stopped", "idle"
ignitionIgnition statustrue / false
odometerOdometer in km125430

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
Note: O API Secret não pode ser recuperado após a geração. Se você perdeu o secret, gere uma nova API Key.

Limites e Segurança

Rate limit:1.000 requisições por hora
Recommended interval:30-60 segundos entre requisições
Timeout:30 segundos por requisição

Security best practice:

✅ Use HTTPS sempre
✅ Guarde credenciais em variáveis de ambiente
✅ Nunca exponha API Key em código público
✅ Implemente retry logic para falhas temporárias
✅ Monitore o uso da API regularmente
✅ Renove API Keys periodicamente

HTTP status codes

CodeMeaningAction
200SuccessProcess the data as normal
401Invalid API keyCheck your credentials
403Access deniedCheck the allowed IP and endpoint
404Resource not foundCheck the URL and parameters
429Rate limit exceededWait an hour or reduce the frequency
500Server errorTry again in a few minutes

Need help?

Nossa equipe está pronta para ajudar você a integrar com a API FleetSage.

Email: suporte@fleetsage.ai

We use cookies to improve your experience. By continuing to browse, you agree to our Cookie Policy.