إنتقل إلى المحتوى الرئيسي

API reference

ZAITRACK's public API v1: 158 operations at https://api.zaitrack.app, generated from the gateway's route table. Every operation below exists at the gateway and reaches a service that serves it.

AreaOperations
Vehicles13
Asset classes1
Devices10
Drivers11
Device classes1
Codecs1
Positions1
Trips2
Geofences8
Alerts7
Alert rules6
Webhooks13
Dispatch jobs10
Device commands6
Seal commands6
Cargo trailer references2
Fuel20
Maintenance19
Reports11
API keys3
Personal access tokens3
Marketplace4

Shapes and where they come from​

Each operation names its request and response fields. They come from the service's handler, read from its source, or from its OpenAPI document where the handler cannot be read. Where neither describes a body, the page says Not described rather than guess.

  • Request bodies: 70 described, 88 have no body, 0 not described.
  • Responses: 142 described, 6 have no body, 8 not described.

Scopes​

A credential reaches an operation when it holds the scope, or the scope's family with * (vehicles:* covers vehicles:read and vehicles:write). 3 operations need only a signed-in caller and 4 need no credential.

ScopeOperations that need it
alerts:read4
alerts:write5
commands:approve2
commands:read4
commands:write6
devices:read4
devices:write6
dispatch:read3
dispatch:write7
drivers:read3
drivers:write8
fuel:read10
fuel:write10
geofences:read5
geofences:write3
maintenance:read9
maintenance:write10
reports:read6
reports:run2
reports:write3
rules:read1
rules:write3
telemetry:read2
tenancy:read1
tenancy:write2
trailers:read2
trips:read2
vehicles:read6
vehicles:write9
webhooks:read6
webhooks:write7

Rate classes​

Each operation has one class. Its limits count your organisation's requests to that operation, across all your credentials, in your region. A request over a limit gets 429. See Rate limits.

ClassLimit per organisation
read100 per second and 360,000 per hour
write50 per second and 36,000 per hour
telemetry10 per second and 180,000 per hour
command20 per second and 360,000 per hour
bulk100 per hour
report1,000 per day
credentials10 per minute
public100 per second and 360,000 per hour (per client IP)