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 isPOST /v2/api/authentication/token/api-key. Interactive reference: API key token.
Step 2 — List your companies
UseGET /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.
Step 3 — Get your fleet’s last positions
UseGET /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.
PositionDto list with fields including deviceId, deviceName, lat, lng, utcTime, speed, ignition.
Step 4 — Fetch a single vehicle’s last position
UseGET /v2/api/vehicles/{id}/last-position for a specific vehicle by its public vehicle ID (deviceId):
GET /v2/api/vehicles/{imei}/device-ids.
Common first errors
See Error handling for the full list of error codes and retry guidance.