PING API

Fleet data and operations for your own systems: vehicles, live positions, trips, alerts, dispatch and reports over REST and JSON.

Base URLhttps://api.ping.nml.sa/v1

Example request
curl "https://api.ping.nml.sa/v1/vehicles" \
  -H "Authorization: Bearer $PING_API_KEY"
Example response
{
  "data": [
    {
      "id": "019ac0c4-6f1e-7a3b-9c2d-4e5f6a7b8c9d",
      "plate": {
        "number": "1",
        "letters": "SKD",
        "type": "private_car"
      },
      "plate_code": "2070SKD",
      "fleet_number": "TRK-089",
      "kind": "truck",
      "vin": "1G4AH59H5G1183441",
      "make": "Toyota",
      "model": "Hilux",
      "year": 2024,
      "department_id": "string",
      "speed_limit_kmh": 120,
      "cargo_min_c": 2,
      "cargo_max_c": 8,
      "tank_l": 400,
      "capacity_pallets": 12,
      "fuel_type": "diesel",
      "use": "light_own_goods",
      "driver_id": "string",
      "created_at": "2026-11-17T08:30:00Z",
      "updated_at": "2026-11-17T08:30:00Z",
      "retired_at": "string",
      "retire_reason": "sold"
    }
  ],
  "next_cursor": "eyJpZCI6InZlaF83S3EyIn0"
}

First call in three steps

  1. 1

    Issue a key

    An account owner issues API keys in the console, with only the scopes the integration needs. The key is shown once.

    ping_live_…
  2. 2

    Authenticate

    Send the key as a bearer token on each request, over HTTPS.

    Authorization: Bearer ping_live_…
  3. 3

    Call the API

    Paths start with the version. Lists are paginated; answers are JSON.

    GET /v1/vehicles?limit=50

Scopes

A key carries only the scopes it is issued with. A key limited to a department sees only that department's vehicles.

ScopeAllows
fleet:readRead vehicles, drivers, groups, geofences, routes, jobs and riders
fleet:writeCreate and change vehicles, drivers, groups, geofences, routes, jobs and riders; dispatch jobs
telemetry:readRead positions, tracks, trips, stops, daily statistics, timelines and camera media
rules:readRead alert rules and alarms
rules:writeCreate, change and delete alert rules; acknowledge and close alarms
devices:readRead device health, command status and the device catalog
devices:controlRemote engine cut-off and restore, under the speed and ignition safety checks
accounts:readRead the account, departments, users and contacts
accounts:writeCreate departments, invite users, change roles and manage contacts
webhooks:readRead webhook endpoints and their delivery log
webhooks:writeCreate, change, test and delete webhook endpoints, rotate their secrets and redeliver events
reports:writeGenerate and send fleet reports

Conventions

Errors

RFC 9457 problem details with a stable code, and field errors for invalid requests.

application/problem+json

Pagination

Cursor based: limit up to 200 (default 50); pass next_cursor to get the next page.

?limit=50&cursor=…

Rate limits

Per key: 10 requests a second with bursts of 50, and 100,000 a day. Over the limit answers 429 with Retry-After.

RateLimit-Remaining

Idempotency

Creates accept an Idempotency-Key. A retry within 24 hours returns the first answer instead of creating again.

Idempotency-Key: <uuid>

Versions and time

The version is in the path; changes within it are additive. Times are RFC 3339 in UTC.

/v1/… 2026-11-17T08:00:00Z

Safety

Remote engine cut-off needs the devices:control scope and runs only when the vehicle passes the speed and ignition checks.

devices:control
Error example · 400
{
  "type": "/problems/invalid_request",
  "title": "Invalid request",
  "status": 400,
  "code": "invalid_request",
  "detail": "some fields are invalid",
  "errors": [
    {
      "field": "plate",
      "message": "is required"
    }
  ]
}

Integrate PING with your systems.

API access comes with all accounts. Our team supports the integration from the first key.