Skip to main content
POST
/
api
/
GetAllLastTimeOnline
/
{companyId}
Get Fleet Heartbeat
curl --request POST \
  --url https://api.telemax.com.au/api/GetAllLastTimeOnline/{companyId} \
  --header 'Authorization: Bearer <token>'
[
  {}
]

Overview

Returns last heartbeat per vehicle in a company (legacy VehicleId in each row).
A V2 version of this endpoint is available: Fleet last-time-online. New integrations should prefer V2.

Endpoint

POST /api/GetAllLastTimeOnline/{companyId}

Path parameters

companyId
integer
required
Company id.

Response

200 OKDeviceLastTimeOnlineDto[] with VehicleId, Imei, LastTimeUTC, secondsAgo.

Error responses

StatusMeaning
401{ "error": "Company {companyId} not found" } when not in tree

Authorizations

Authorization
string
header
required

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

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

Scoping:

  • User tokens are scoped to a single company.
  • API key tokens may restrict access to a vehicle allowlist and/or action set (see token claims).

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

Headers

Content-Type
string
Authorization
string
required

Bearer your_token

Path Parameters

companyId
integer
required

Response

Successful response