Get Vehicle Last Online
Vehicle commands
Get vehicle last online
Last heartbeat time and seconds since, for one vehicle.
POST
Get Vehicle Last Online
Overview
Returns last heartbeat time and seconds since, for one vehicle.A V2 version of this endpoint is available: Last online. New integrations should prefer V2.
Endpoint
POST /api/LastTimeOnline/{id}
Path parameters
Legacy vehicle id.
Response
200 OK —LastTimeOnlineDto
| JSON field | Type | Description |
|---|---|---|
| LastTimeUTC | string (datetime) | null | Last heartbeat |
| secondsAgo | number | null | Seconds since heartbeat |
Example response
Authorizations
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
Standard and must keep as it is.
Bearer your_token
Path Parameters
Vehicle ID