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

The V2 token endpoint is POST /v2/api/authentication/token/api-key. 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 list your company and its sub-companies. Your own company is the item with level 0; it is listed last, after its sub-companies (on the last page when there are more companies than pageSize). You’ll need its id for fleet and alert endpoints. Not every listed company can be used with other endpoints — see Token scoping.
200 OK — paginated list of companies (abridged; List companies shows every field):

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 mapped to that company. Sub-company vehicles are not included unless they are also mapped to it: to cover them, repeat the call for each company with level 1 in the Step 2 response (deeper levels return 404), and de-duplicate by deviceId, falling back to imei when deviceId is -1.
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 public 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.