Inspect API & AI access
Connect your DMS, yard system or telematics feed to BayWise Inspect. Your system sends Inspect its fleet and reads back what Inspect has recorded: each vehicle’s risk and inspection history, and fleet-wide compliance. An AI assistant can answer questions about your fleet from the same data.
The Inspect API and AI-assistant access are part of the Inspect Enterprise plan. On the Free and Pro plans, the Developer tab shows an upgrade prompt and no key can call the Inspect API.
This guide covers the 12 operations grouped under Start Here (External Integration) in the interactive reference. They list and read assets, read risk and history, sync assets in, read compliance, fleet coverage and occupancy, resolve a checklist, read one execution, and read the asset-type and site-location lists. The interactive reference also documents the rest of the Inspect API: building checklists, scheduling rules, and running an inspection from start to finish, which is what the Inspect app itself uses. Start a new integration with the 12 operations here.
What the Inspect API is, and when to use it
Inspect keeps a permanent record of whether an asset was inspected and what the inspection found. It covers vehicles, and any other asset type your operation sets up. The API gives systems outside Inspect access to that record.
What each system holds about a vehicle
| System | What it holds about this vehicle | Example fields |
|---|---|---|
| DMS or yard system | That the vehicle exists, and its paperwork | vin, plate, arrivalDate |
| Inspect | Every inspection run against it: repeated failures, flagged items, photos | What the API returns |
A DMS records that a vehicle exists. It does not record that the brake check has failed on the last three inspections. Inspect does, and the API returns it.
What you can do with the API
- Sync your fleet. Send Inspect your vehicles by your own reference (a VIN, a plate or an asset tag), once in full and then as they change. Matching ignores punctuation and case, so
KA-01 AB 1234andka01ab1234are the same vehicle. - Read a vehicle’s status: its current risk score with the reason for every point, and its inspection history.
- Read fleet-wide figures: on-time compliance over a period, the share of the fleet inspected at all, and what is parked in each space of a yard.
- See why a vehicle gets the checklist it gets, for when someone disputes it.
- Ask an AI assistant about vehicle status and fleet figures. The assistant can only read.
Your system stays the record of the vehicle. Inspect stays the record of what inspections found. Compliance and coverage figures come with the counts behind them, not a bare percentage.
Checklists and scheduling rules are set up in the app. The full API can build a checklist, decide which asset types get which rule and run an inspection, but an external system normally sends its fleet and reads the results back.
Core concepts
For the business background, see Assets & Site Layout and Needs Attention.
| Concept | What it means |
|---|---|
| Asset | The thing being inspected: a vehicle, or another asset type your operation sets up. Identified by your own reference (VIN, plate, tag). |
| Risk | A score from 0 to 100 for one asset, worked out from its inspection history. Every point comes with a plain-English reason. |
| History | A summary of everything an asset’s inspections have found: runs of passes and failures per question, and what the summary could not include. |
| Occupancy | Which spaces in a yard hold a vehicle, for sites that record a yard layout. |
| Compliance | Inspections completed on time over a period. Missed inspections count against the rate. |
| Fleet coverage | How much of the whole fleet was inspected at all in a period. This is a different figure from compliance. |
| Resolve | Why an asset gets a checklist: the rule that applies, and every rule it took precedence over. |
Getting a key
- In BayWise Inspect, open Settings → Developer. A key you create here is for the Inspect API.
- Name the key.
- Under Permissions, choose what the key may do. You can only grant what your own role allows. For the 12 operations in this guide:
- Read assets covers looking up a vehicle, its risk and history, occupancy, which checklist applies to a vehicle, and the asset-type and site-location lists.
- Read & carry out inspections is needed to read an inspection execution.
- Read coverage & compliance covers the compliance and fleet coverage figures.
- Create & edit assets is needed to sync vehicles in.
- Optionally limit the key to one location and set an expiry date.
- Click Create API key. The full key is shown once. Copy it and store it somewhere safe.
A key created in Inspect works only with the Inspect API. To use another product’s API, create a separate key in that product.
Who can do this: Account Owners and Org Admins, on the Inspect Enterprise plan.
Using the API
Send your key as a bearer token (Authorization: Bearer …) to the BayWise API base URL. Request and response details, every field and a “try it” console are in the Inspect API reference .
Rules that apply to every call:
- Send an
Idempotency-Keyheader on every write. Repeating a key with the same body returns the first response and does not act twice. Repeating a key with a different body is refused. - Lists are paginated. Follow
next_cursoruntil it isnull. Do not build a cursor yourself. - Dates are measured on the site’s own calendar. A compliance period, or the day something was due, uses the site’s calendar day in the site’s timezone, not your server’s.
- Errors are RFC 7807
application/problem+json. Each carries arequest_idto quote to support. - Answers are typed. If you record an inspection answer directly (part of the full API), a pass or fail question takes a boolean. The string
"FAIL"is refused, not read as “no answer”.
The sync pattern (your system to Inspect)
Send your fleet in batches of up to 1,000 vehicles, matched by your own reference: a VIN, a plate or an asset tag. Matching ignores case and punctuation, so KA-01 AB 1234 and ka01ab1234 are the same vehicle.
POST /v1/inspect/assets/ingest
Authorization: Bearer bw_live_…
Idempotency-Key: dms-sync-2026-09-22
Content-Type: application/json
{
"sourceSystem": "your-dms",
"assets": [
{ "externalRef": "DXB-A-4471", "assetTypeKey": "sedan",
"attributes": { "color": "White", "fuelType": "Petrol" },
"sourceUpdatedAt": "2026-09-22T05:00:00Z" }
]
}A row that fails validation does not fail the batch. It comes back in the response’s diagnostics with the reason, and is also listed at GET /v1/inspect/ingestion-errors. A sync of 20,000 vehicles in 20 batches saves every valid row. Send dryRun: true to see the result without saving anything.
A sync never changes a reference that someone linked to a vehicle by hand in the app. Your system and a person can refer to the same vehicle by different references, and neither overwrites the other.
A typical flow
-
Sync your fleet once at the start, then as vehicles change. See the sync pattern above.
-
Look up a vehicle by your own reference:
GET /v1/inspect/assets?externalRef=DXB-A-4471Finding a vehicle: externalRef or q
externalRef is an exact lookup. It matches a vehicle’s main reference and every other reference it has, ignoring case and punctuation. q is a partial search for when you only have part of a reference: dxb-a-44 finds DXB-A-4471. q takes up to 64 characters and needs at least one letter or digit. If you already have the vehicle’s Inspect id from an earlier call, read it directly:
GET /v1/inspect/assets/{id}- Read its status:
GET /v1/inspect/assets/{id}/risk
GET /v1/inspect/assets/{id}/historyRisk, history, compliance and fleet coverage
These four reads answer different questions. Pick the one that matches your question:
| Scope | Question it answers | |
|---|---|---|
| Risk | One vehicle | How risky is this vehicle now, and why? A score from 0 to 100 with reasons. |
| History | One vehicle | What has this vehicle’s inspection record found? The risk score is worked out from it. |
| Compliance | Whole fleet, over a period | Were inspections done on time? Completed inspections against those that were due, missed ones included. |
| Fleet coverage | Whole fleet, over a period | How much of the fleet was inspected at all? |
GET /v1/inspect/compliance?days=30
GET /v1/inspect/fleet-coverage?days=30days accepts 1 to 730, and defaults to 30. You can send from and to instead.
- See why a vehicle gets the checklist it gets, for example when a fleet manager disputes it:
POST /v1/inspect/resolve
Content-Type: application/json
{ "assetId": "1a2b3c4d-5e6f-7890-abcd-ef1234567890", "cadence": "DAILY" }cadence changes the answer. A vehicle can get a different checklist for its daily check than for its monthly one. Leaving cadence out means DAILY.
- Read what is parked in each space, for sites that record a yard layout:
GET /v1/inspect/occupancy- Read the execution behind an inspection once you have its id, for example from a webhook:
GET /v1/inspect/executions/{id}- Read the asset-type and site-location lists, to look up the ids and codes in the responses above:
GET /v1/inspect/asset-types
GET /v1/inspect/site-locationsWebhooks
Subscribe to Inspect events so your system reacts when something happens, without polling. Create the subscription with POST /v1/platform/webhooks, using an Inspect API key. A subscription made with any other key is refused. See Webhooks for the payload and signature verification.
There are 21 events. They cover an inspection becoming due, overdue or missed (inspect.occurrence.created, inspect.occurrence.due, inspect.occurrence.overdue, inspect.occurrence.missed and others), an inspection being submitted (inspect.inspection.submitted, inspect.inspection.outcome), a vehicle’s record (inspect.asset.uncovered, inspect.asset.provisional_created, inspect.asset.disposed, inspect.asset.merged), and flagged items (inspect.escalation.created, inspect.escalation.resolved and others). The full list is on the Webhooks page.
Connecting an AI assistant (MCP)
In Settings → Developer, use Connect via MCP to generate a token, then copy the configuration into your AI client (for example, Claude Desktop → Settings → Developer → Edit Config). The token lasts 90 days. The assistant acts as you and can only do what your role allows. It can read Inspect data and cannot change it.
What the assistant can read:
| Tool | Example question |
|---|---|
| List or get assets | ”Do we have vehicle DXB-A-4471 on file?” / “What do we have on file for this one?” |
| Get asset risk | ”How risky is this vehicle, and why?” |
| Get asset history | ”What has this vehicle’s inspection record found?” |
| Get occupancy | ”Which yard spaces hold a vehicle right now?” |
| Get compliance | ”Were our inspections on time this month?” |
| Get fleet coverage | ”How much of the fleet have we inspected?” |
| List asset types or site locations | ”What asset types and sites do we have set up?” |
The assistant cannot sync a fleet, change a vehicle’s record or act on a flagged item. It has no tool to resolve a checklist or read an execution. Those need a person in the app or a system calling the REST API.
Need help?
Quote the request id from any response when you contact support. You can revoke a key at any time from the Developer tab. A revoked key stops working immediately.