The FleetZap API
The same REST API the FleetZap app runs on (work orders, assets, meters, PM, requests, parts, purchasing, dispatch, rentals and invoices), plus signed webhooks for Zapier, Make, n8n or your own server.
Try it now, no account needed Public sandbox key · read-only · demo companyfzk_sandbox_demo_readonly Open the API explorerFull API reference- … endpoints
- REST + JSON OpenAPI 3.1
- HMAC-signed webhooks
- Read-only or read & write keys
Quick start
1. Try the sandbox
Use fzk_sandbox_demo_readonly to read the demo company: real endpoints, invented data, nothing to sign up for.
2. Get your own key
A company admin creates one in Settings → API & webhooks: read only or read & write, optional expiry and IP allowlist. It’s shown once, so store it like a password.
3. Add webhooks
Pick events and a URL. FleetZap POSTs { id, event, occurredAt, data } within seconds of a change, signed with your secret.
Zapier, Make or n8n
Open a work order from a form, post new requests to Teams or Slack, push completed jobs to a spreadsheet.
BI & reporting
Pull work orders, assets, downtime and costs into Power BI, Looker Studio or Excel on a schedule.
Your own sensors
Log meter readings from a PLC or telematics box, and PM schedules and automations run on them.
ERP & accounting
Sync parts, vendors and purchase orders, or read invoices, with the systems you already run.
API explorer
Pick an endpoint, fill in parameters and send a real request. The sandbox key is filled in; paste your own key to read your company (it’s only sent to FleetZap).
Loading…
Authentication
Send your key in the Authorization header on every request: Authorization: Bearer fzk_…. Keys only work over HTTPS. GET /whoami tells you which company and key you’re using.
- Scoped to one company. Each key contains your company ID (
fzk_co_…_…) and never opens anything else. - Read only or read & write. Read-only keys can only
GET. - Locked down. No key can reach passwords, people, billing, key or webhook settings.
- Traceable. Every change made with a key is in the company’s audit log under the key’s name; admins are emailed when keys are created, rotated or revoked.
Rate limits
Each key allows 120 requests a minute (the public sandbox: 30 per visitor). Every response carries X-RateLimit-Limit and X-RateLimit-Remaining; over the limit you get 429 with a Retry-After header in seconds. List endpoints return every matching record, so filter with query parameters rather than paging.
Errors
Errors come back as { "error": { "code", "message" } } with a plain-English message you can show to people.
| Status | Code | Meaning |
|---|---|---|
| 400 | bad_request | The body or query didn’t validate. message says which field. |
| 401 | unauthorized | Missing, wrong, revoked or expired key. |
| 402 | read_only | The company’s subscription has ended. Reads still work, writes don’t. |
| 403 | forbidden | The key can’t do this (read-only key, blocked route, IP not allowed, not HTTPS). |
| 404 | not_found | No such record in your company. |
| 409 | conflict | The change conflicts with the record’s state (e.g. required steps not done). |
| 429 | rate_limited | Too many requests this minute. Wait Retry-After seconds. |
Webhooks
Add endpoints in Settings → API & webhooks. Changes to the same record within a few seconds are combined into one delivery. Reply with any 2xx within 10 seconds; after 20 failures in a row the webhook is paused and admins can see why.
| Event | When |
|---|---|
work_order.created | A work order was opened (by a person, a request, a PM schedule or an automation) |
work_order.updated | Status, assignee, due date, steps, parts or time changed |
work_order.completed | A work order was marked done |
asset.updated | An asset changed (meter, location, details) |
asset.status_changed | An asset went down, into service or back to available |
request.created / request.updated | A work request came in, was approved or declined |
rental.updated | A rental was booked, checked out, returned or canceled |
invoice.updated | An invoice was created, sent or paid |
dispatch_job.updated | A delivery, pickup or transfer changed status |
Every delivery has a FleetZap-Signature: t=…,v1=… header: the HMAC-SHA256 of `${t}.${rawBody}` with your webhook secret. Compare it in constant time and reject anything older than five minutes.
Reference
Loading…
Building something?
Tell us what you’re connecting and we’ll help with the endpoints and events you need.
Talk to us