Last online (V2)
Vehicles
Last online
Returns the last time a vehicle was online and how long ago that was.
GET
Last online (V2)
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
Legacy vehicle ID.
Response
200 OK —LastTimeOnlineDto
| Field | Type | Description |
|---|---|---|
| lastTimeOnlineUtc | datetime | null | Last contact timestamp (UTC, no fractional seconds) |
| secondsAgo | number | null | Seconds elapsed since last contact |
Example response
Error responses
| Status | Meaning |
|---|---|
| 401 | Token does not have access to this vehicle |
| 404 | Vehicle not found |
Authorizations
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
Response
Successful response