Referencia

El texto de la referencia proviene de la propia API, en inglés.

Resumen diario

Distancia, horas de motor y tiempo en ralentí de una unidad por día. El cliente también necesita el módulo de telemetría CAN.

60 solicitudes por minuto, ráfaga de 60

GET /v1/external/daily-summary

Distance, engine hours and idle time of one unit per day

Returns one unit's daily figures for the local days in [from, to), at most 92 days, in date order. A day is a local date in the time zone of the unit's organization (time_zone); a day without derived figures is absent. A unit outside the caller's units answers 404, the same as one that does not exist. Requires the CAN telemetry module in the client's client access; without it the answer is the 403 of a key without this product.

5 créditos por llamada correcta

curl -s -H "X-API-Key: $KEY" \
  "https://api.orbistrack.tools/v1/external/daily-summary?uid=<uid>"
Parámetros
NombreTipoDescripción
uidobligatoriostringThe unit's id: a canonical (lowercase, hyphenated) UUID.
fromstringFirst local date of the range, included (YYYY-MM-DD). Required.
tostringLocal date the range ends before, excluded (YYYY-MM-DD). Required; at most 92 days after from.
organization_idstringOnly a unit of this organization: a UUID. Optional. An organization outside the caller's reach answers 404, the same as one that does not exist.
Respuesta
NombreTipoDescripción
itemsarray | null
items[].datestring (date)The local date of the day (YYYY-MM-DD), in time_zone.
items[].distance_kmnumber (double) | nullDistance driven that day, in km, from the odometer, rounded to 2 decimals. Null when the unit has no odometer reading.
items[].engine_hoursnumber (double) | nullTime with the engine on, in hours, rounded to 2 decimals. Null when the unit has no engine state.
items[].finalbooleanTrue once the day is closed; false while its figures may still change (today, or a day still being derived).
items[].idle_hoursnumber (double) | nullTime idling (engine on, stopped, power take-off excluded), in hours, rounded to 2 decimals. Null when the unit has no engine state.
items[].organization_idstring (uuid)The unit's organization.
items[].time_zonestringThe IANA time zone that defines the day: the organization's.
items[].unit_idstring (uuid)The unit's id.
next_cursorstringPass as cursor to read the next page. Absent at the end of the list.

Errores

Última posición (formato anterior)

La última posición de una unidad en el formato anterior. Las integraciones nuevas deben usar posiciones.

1800 solicitudes por minuto, ráfaga de 600

GET /v1/external/last-position

Last known position of one unit

Returns the last known position of one of the key owner's units. A unit the owner does not own answers 404, the same as one that does not exist.

1 créditos por llamada correcta

curl -s -H "X-API-Key: $KEY" \
  "https://api.orbistrack.tools/v1/external/last-position?uid=<uid>"
Parámetros
NombreTipoDescripción
uidobligatoriostringThe unit's id: a canonical (lowercase, hyphenated) UUID.
Respuesta
NombreTipoDescripción
estatusinteger (int64)Always 200 on success.
rastreoobjectThe last known position, or null when the unit has not reported yet.
unidadstringThe unit's name.

Errores

Últimas posiciones (formato anterior)

La última posición de todas las unidades en el formato anterior. Las integraciones nuevas deben usar posiciones.

10 solicitudes por minuto, ráfaga de 10

GET /v1/external/last-positions

Last known position of every unit of the key's owner

Returns every active unit the key owner owns, in name order, each with its last known position (null when it has not reported yet).

1 créditos por llamada correcta

curl -s -H "X-API-Key: $KEY" \
  "https://api.orbistrack.tools/v1/external/last-positions"
Respuesta
NombreTipoDescripción
estatusinteger (int64)Always 200 on success.
unidadesarray | nullEvery active unit of the key's owner, ordered by name.
unidades[].rastreoobjectThe last known position, or null when the unit has not reported yet.
unidades[].uidstring (uuid)The unit's id.
unidades[].unidadstringThe unit's name.

Errores

Posiciones

La última posición de una o de todas las unidades, y el historial de posiciones de una unidad en un período.

300 solicitudes por minuto, ráfaga de 60

GET /v1/external/positions/history

Position history of one unit

Returns the positions with a GPS fix of one unit in the half-open window [from, to), ascending by time. The window is at most 7 days; wider is 422 range_too_large. limit is 1 to 1000 (default 500). A unit the caller cannot see answers 404, the same as one that does not exist.

5 créditos por llamada correcta

curl -s -H "X-API-Key: $KEY" \
  "https://api.orbistrack.tools/v1/external/positions/history?unit_id=<unit_id>&from=<from>&to=<to>"
Parámetros
NombreTipoDescripción
unit_idobligatoriostringThe unit: a canonical (lowercase, hyphenated) UUID.
organization_idstringOnly a unit of this organization: a UUID. Optional. An organization outside the caller's reach answers 404, the same as one that does not exist.
fromobligatoriostringStart of the window, RFC 3339, included.
toobligatoriostringEnd of the window, RFC 3339, excluded. At most 7 days after from; wider is 422 range_too_large.
cursorstringThe next_cursor of the previous page, with the same unit_id, from and to.
limitintegerPage size: 1 to 1000, default 500. Above 1000 is 422.
Respuesta
NombreTipoDescripción
itemsarray | null
items[].course_deginteger (int32) | nullHeading in degrees, 0 to 359; null when the device reported none.
items[].latitudenumber (double)WGS84 latitude in decimal degrees.
items[].longitudenumber (double)WGS84 longitude in decimal degrees.
items[].speed_kmhnumber (double) | nullSpeed in km/h, rounded to 2 decimals; null when the device reported none.
items[].timestring (date-time)When the position was recorded, UTC RFC 3339.
next_cursorstringPass as cursor to read the next page. Absent at the end of the list.

Errores

GET /v1/external/positions/latest

Latest position of one unit or of every unit

Returns the newest position with a GPS fix of every unit the caller can see, ordered by unit id, or of only the unit in unit_id, or of one organization's in organization_id. Each item names the unit's organization. A unit that has not reported yet has a null position. limit is 1 to 500 (default 100). A unit the caller cannot see answers 404, the same as one that does not exist.

1 créditos por llamada correcta

curl -s -H "X-API-Key: $KEY" \
  "https://api.orbistrack.tools/v1/external/positions/latest"
Parámetros
NombreTipoDescripción
unit_idstringOnly this unit: a canonical (lowercase, hyphenated) UUID. Omit for every unit the caller can see.
organization_idstringOnly this organization's units: a UUID. Optional: omitted, every organization the caller reaches. An organization outside the caller's reach answers 404, the same as one that does not exist.
cursorstringThe next_cursor of the previous page, with the same unit_id and organization_id.
limitintegerPage size: 1 to 500, default 100. Above 500 is 422.
Respuesta
NombreTipoDescripción
itemsarray | null
items[].organization_idstring (uuid)The unit's organization.
items[].positionobjectThe newest position with a GPS fix, or null when the unit has not reported yet.
items[].unit_idstring (uuid)The unit's id.
items[].unit_namestringThe unit's name.
next_cursorstringPass as cursor to read the next page. Absent at the end of the list.

Errores

Unidades

Las unidades que su clave puede ver, con nombre, placa, modelo y grupos. Consúltelo de vez en cuando: las unidades cambian poco.

60 solicitudes por minuto, ráfaga de 20

GET /v1/external/units

List and search the caller's units

Returns the units the caller can see, ordered by id, as a cursor list. q searches name, plate and group name; organization_id keeps one organization's. Each unit names its organization. End of list when next_cursor is absent.

1 créditos por llamada correcta

curl -s -H "X-API-Key: $KEY" \
  "https://api.orbistrack.tools/v1/external/units"
Parámetros
NombreTipoDescripción
qstringKeeps the units whose name, plate or group name contains this text, case-insensitively. At most 120 characters.
organization_idstringOnly this organization's units: a UUID. Optional: omitted, every organization the caller reaches. An organization outside the caller's reach answers 404, the same as one that does not exist.
limitintegerPage size: default 50, maximum 200. Above the maximum is 422.
cursorstringThe next_cursor of the previous page, with the same q and organization_id.
Respuesta
NombreTipoDescripción
itemsarray | null
items[].groupsarray | nullThe groups the unit belongs to, ordered by name. Empty when none.
items[].groups[].idstring (uuid)The group's id.
items[].groups[].namestringThe group's name.
items[].idstring (uuid)The unit's id (UUIDv7).
items[].modelobjectThe vehicle model, or null when not recorded.
items[].namestringThe unit's name.
items[].organization_idstring (uuid)The unit's organization.
items[].platestring | nullThe license plate, or null when not recorded.
next_cursorstringPass as cursor to read the next page. Absent at the end of the list.

Errores

GET /v1/external/units/{id}

Read one of the caller's units

Returns one unit the caller can see. A unit the caller cannot see answers 404, the same as one that does not exist.

1 créditos por llamada correcta

curl -s -H "X-API-Key: $KEY" \
  "https://api.orbistrack.tools/v1/external/units/<id>"
Parámetros
NombreTipoDescripción
idobligatoriostringThe unit's id: a canonical (lowercase, hyphenated) UUID.
Respuesta
NombreTipoDescripción
groupsarray | nullThe groups the unit belongs to, ordered by name. Empty when none.
groups[].idstring (uuid)The group's id.
groups[].namestringThe group's name.
idstring (uuid)The unit's id (UUIDv7).
modelobjectThe vehicle model, or null when not recorded.
namestringThe unit's name.
organization_idstring (uuid)The unit's organization.
platestring | nullThe license plate, or null when not recorded.

Errores