FleetZap · Features · Solutions · FleetZap Maintenance · FleetZap Rentals · FleetZap Dispatch · FleetZap GPS Tracking · What a CMMS does · GPS tracking & engine hours · Dispatch & route optimization · Rentals module · Industries · Customers · Resources · Free calculators · Free templates · Pricing · Contact

The FleetZap API

Developers

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 company fzk_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 startAPI explorerAuthenticationRate limitsErrorsWebhooksReferenceFull API referenceOpenAPI JSON ↗

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.

StatusCodeMeaning
400 bad_requestThe body or query didn’t validate. message says which field.
401 unauthorizedMissing, wrong, revoked or expired key.
402 read_onlyThe company’s subscription has ended. Reads still work, writes don’t.
403 forbiddenThe key can’t do this (read-only key, blocked route, IP not allowed, not HTTPS).
404 not_foundNo such record in your company.
409 conflictThe change conflicts with the record’s state (e.g. required steps not done).
429 rate_limitedToo 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.

EventWhen
work_order.createdA work order was opened (by a person, a request, a PM schedule or an automation)
work_order.updatedStatus, assignee, due date, steps, parts or time changed
work_order.completedA work order was marked done
asset.updatedAn asset changed (meter, location, details)
asset.status_changedAn asset went down, into service or back to available
request.created / request.updatedA work request came in, was approved or declined
rental.updatedA rental was booked, checked out, returned or canceled
invoice.updatedAn invoice was created, sent or paid
dispatch_job.updatedA 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

Book a demo · Try the live demo