Prerequisites — Create an API Key
Before making any API calls, you’ll need an API key. Head to the Telemax Webhooks and API Key section in the Telemax dashboard to create your own key.Navigate to Telemax Dashboard → Webhooks and API Key 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
Interactive reference: API key token · Dashboard user token.Step 2 — Call an authenticated endpoint
Almost all routes use POST with parameters in the query string (not JSON body) — see the architecture note for details. The onlyGET endpoints are GetDeviceId and devices/{deviceId}/dtc-codes. Example: GetLastPositionData for legacy vehicle 88421:
PositionDto JSON object (see Request & response) with fields such as Lat, Lng, UtcTime, DeviceId (legacy id), IMEI, etc.
Common first errors
| Symptom | Cause | Fix |
|---|---|---|
401 with no body | Missing or invalid Authorization header | Obtain a fresh token; prefix with Bearer |
401 from token endpoint | Wrong password or unknown API key | Verify credentials; GUID keys must exist in ApiKeys non-deleted |
400 from token endpoint | API key invalid for legacy path | Legacy keys must resolve via the configured legacy API service |
404 on data route | Vehicle legacy id unknown | Confirm vehicle exists; use GetDeviceId if you only have IMEI |
Empty access_token | Parsing error | Ensure Content-Type is form-urlencoded, not JSON |