Skip to content

REST API

Read your whole fleet over an API.

Pull your vehicles, drivers, documents, and compliance status as clean JSON — and get a webhook the moment any of it changes. On every plan, from $99/mo.

WHAT YOU CAN READ

A read API over your live fleet data.

Authenticate with an API key and GET the same records Dockex tracks for you — paginated, filtered, the way you'd expect. It's read-only on purpose: your data flows out to your systems, nothing writes back through the key. So you can wire Dockex into your BI, your ERP, your own dashboards without worrying it'll touch your records.

  • Vehicles — VIN, plate, status, registration + insurance expiry
  • Drivers — CDL class, state, expiry, medical cert, status
  • Documents — type, status, expiry (metadata, scoped to your company)
  • Compliance — expired + expiring-soon counts across your fleet
  • Filing requests — service type, status, submitted + completed dates
cURL
curl -H "X-API-Key: dockex_your_key_here" \
  https://api.dockex.io/api/v1/vehicles
Response
{
  "data": [
    {
      "id": "veh_abc123",
      "vin": "1HGCM82633A004352",
      "year": 2024,
      "make": "Freightliner",
      "model": "Cascadia",
      "status": "compliant",
      "registrationExpiry": "2026-09-15"
    }
  ],
  "meta": { "total": 47, "page": 1, "limit": 20, "totalPages": 3 }
}

WEBHOOKS

Stop polling. Get a callback instead.

Point a webhook at your endpoint and Dockex POSTs you the moment something changes — a new vehicle, a filing that moves a stage, a document that lands. Three event types today, scoped to your company. Your systems stay in sync without a single cron job.

  • Real-time HTTP callbacks — no polling loop to babysit
  • Subscribe per event type, point each at any URL you own
  • Scoped to your company — you only get your own fleet's events
vehicle.created
request.status_changed
document.uploaded

API ACCESS

On every plan, from $99/mo.

I don't gate the API behind an enterprise tier. Same endpoints, same webhooks, same docs whether you're on the $99 Starter or the $799 Business plan. The tiers differ on fleet size, support and the IFTA filing fee — and Autopilot starts at Professional. The API is the same on all of them.

  • Generate a key right in Settings — OWNER or fleet manager
  • OpenAPI spec at /api/v1/openapi-spec — point your codegen at it
  • Live sandbox, no signup — build against it first
Auth header
# every request carries your key
X-API-Key: dockex_your_key_here

# revoke + rotate any time in Settings

BUILD ON IT

Your fleet data, in your systems.

Spin up a sandbox, generate a key, and pull your first vehicle in under a minute.

Walk inSee a live fleet

SPAWNS IN ~20 SECONDS · NO SIGNUP · NO CARD