Skip to main content

Overview

Returns last positions for vehicles in the caller’s company tree, optionally filtered to specific internal vehicle ids (Vehicle.Id, not legacy id).
A V2 version of this endpoint is available: List vehicles. New integrations should prefer V2.

Endpoint

POST /api/devices

Request body

FieldTypeRequiredDescription
vehicleIdsinteger[]NoFilter to internal vehicle ids; empty = all allowed vehicles

Example request body

{
  "vehicleIds": [15042, 15043]
}

Response

200 OK — array of PositionDto (same shape as other position endpoints).
⚠️ Note: The controller declares DeviceDto[] but the service returns PositionDto instances—trust the runtime JSON (position fields).

Error responses

StatusMeaning
401Token missing, expired, or invalid
403Token does not grant access to the requested company