Skip to main content

Prerequisites — Create an API Key

Before making any API calls, you’ll need an API key. Head to the Telemax API Keys V2 section in the Telemax dashboard to create your own key.
Navigate to Telemax Dashboard → API Keys V2 to generate a new API key. Copy the key and keep it secure — you’ll use it in the step below.

Step 1 — Get an access token

V2 token endpoints are at /v2/api/authentication/token/.... Interactive reference: API key token.
200 OK response shape:
Cache this token and reuse it. Tokens are valid for ~24 hours — see Authentication for the recommended caching pattern.

Step 2 — List your companies

Use GET /v2/api/companies to discover the company IDs your token can access. The Id on the first result is your primary company ID — you’ll need it for fleet and alert endpoints.
200 OK — paginated list of companies:

Step 3 — Get your fleet’s last positions

Use GET /v2/api/companies/{id}/vehicles/last-position with the company ID from Step 2 to fetch the current location of every vehicle.
200 OK — paginated PositionDto list with fields including DeviceId, DeviceName, Lat, Lng, UtcTime, Speed, Ignition.

Step 4 — Fetch a single vehicle’s last position

Use GET /v2/api/vehicles/{id}/last-position for a specific vehicle by its vehicle ID (DeviceId):
If you only have an IMEI, convert it first with GET /v2/api/vehicles/{imei}/device-ids.

Common first errors

See Error handling for the full list of error codes and retry guidance.