Skip to main content
GET
/
api
/
v2
/
vehicles
/
{id}
/
last-online
Last online (V2)
curl --request GET \
  --url https://api.telemax.com.au/api/v2/vehicles/{id}/last-online \
  --header 'Authorization: Bearer <token>'
{
  "lastTimeOnlineUtc": "2026-04-28T06:14:22",
  "secondsAgo": 4218
}

Overview

Returns the last-seen timestamp for a single vehicle and the elapsed time in seconds.
The V1 version of this endpoint is Vehicle Last Online.
Rate limit: 60 requests per 60 seconds per token.

Endpoint

GET /api/v2/vehicles/{id}/last-online

Path parameters

id
integer
required
Legacy vehicle ID.

Response

200 OKLastTimeOnlineDto
FieldTypeDescription
lastTimeOnlineUtcdatetime | nullLast contact timestamp (UTC, no fractional seconds)
secondsAgonumber | nullSeconds elapsed since last contact

Example response

{
  "lastTimeOnlineUtc": "2026-04-28T06:14:22",
  "secondsAgo": 4218.0
}

Error responses

StatusMeaning
401Token does not have access to this vehicle
404Vehicle not found
curl "https://api.telemax.com.au/api/v2/vehicles/88421/last-online" \
  -H "Authorization: Bearer <token>"

Authorizations

Authorization
string
header
required

JWT Bearer token obtained from POST /api/v2/authentication/token/api-key.

Lifetime: ~24 hours (86,399 seconds). Cache the token and reuse it. Re-authenticate 5 minutes before expiry.

Scoping: API key tokens are scoped to the company the key belongs to and may restrict access to a vehicle allowlist and/or action set (see token claims).

No refresh endpoint — re-authenticate with your API key when the token expires.

Path Parameters

id
integer
required

Response

Successful response