Skip to main content
GET
/
api
/
v2
/
companies
/
{id}
/
vehicles
/
last-time-online
Fleet last-time-online (V2)
curl --request GET \
  --url https://api.telemax.com.au/api/v2/companies/{id}/vehicles/last-time-online \
  --header 'Authorization: Bearer <token>'
{
  "items": [
    {
      "vehicleId": 88421,
      "imei": "353148090123456",
      "lastTimeOnlineUtc": "2026-04-28T06:14:22",
      "secondsAgo": 4218
    }
  ],
  "totalResults": 1,
  "lastResultIndex": 1,
  "currentPage": 1,
  "numberOfPages": 1
}

Overview

Returns the last time each vehicle in the company was seen online, along with how many seconds ago that was.
The V1 version of this endpoint is Fleet last online. V2 is paginated.
Rate limit: 20 requests per 60 seconds per token.

Endpoint

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

Path parameters

id
integer
required
Company ID.

Query parameters

page
integer
default:"1"
Page number (1-based).
pageSize
integer
default:"50"
Records per page.

Response

200 OKPagedListResult<DeviceLastTimeOnlineDto>
FieldTypeDescription
vehicleIdintegerLegacy vehicle ID
imeistring | nullDevice IMEI
lastTimeOnlineUtcdatetime | nullLast seen timestamp (UTC, no fractional seconds)
secondsAgonumber | nullSeconds elapsed since last contact

Error responses

StatusMeaning
401Token not scoped to this company
403Company not in caller’s accessible hierarchy
404Company not found
curl "https://api.telemax.com.au/api/v2/companies/12/vehicles/last-time-online?page=1&pageSize=50" \
  -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

Query Parameters

page
integer
default:1
pageSize
integer
default:50

Response

Successful response