Home / Integrations / API reference

P1Your AgencyYour Agency · Powered by P1CAD

CAD API reference.

A REST API for reading and dispatching against your Computer-Aided Dispatch system — incidents, units, stations, recommendations, geocoding, and E911 intake. Every response is JSON, and every request is scoped to your agency.

Base URL https://cad.youragency.gov

Overview

The API is an add-on to your P1CAD deployment. It runs alongside your CAD and exposes a versioned HTTPS interface on your own domain.

Base URLhttps://cad.youragency.gov
Integration prefix/api/v1
Mobile / MDT prefix/api/mobile
FormatJSON request & response · UTF-8
TransportHTTPS only
Branded to your agency. This reference — and your API endpoint — carries your agency's name, logo, and colors. Your base URL above is unique to your deployment.

Authentication

Integration requests authenticate with an API key sent in the X-API-Key header. Your key is issued by your CAD administrator and is tied to your agency.

Request header
X-API-Key: {{YOUR_API_KEY}}

Scopes

Each key carries one or more scopes. Endpoints below are labelled with the scope they require.

ScopeGrants
readRead incidents, units, stations, reference & geo data.
writeCreate calls, add notes, change statuses, assign/clear units, close calls.
adminEverything, plus provisioning endpoints (e.g. E911 positions). Implies read + write.

Agency scoping

When your key is bound to an agency, the API automatically restricts every request to that agency's data — you cannot read or modify another agency's records, and an agency query parameter, if sent, is ignored in favor of your key's agency.

401 Missing or invalid X-API-Key
403 Key lacks the required scope, or record belongs to another agency

Conventions

List envelope

List endpoints return a count and a data array. Detail endpoints return the object directly.

Shape
{ "count": 3, "data": [ /* objects */ ] }

Pagination

Where supported, use limit (default 100, max 500) and offset (default 0).

Timestamps

All timestamps are ISO-8601. Fields ending in At (e.g. CreatedAt, DispatchedAt) are datetimes; null means the event hasn't happened.

Errors & status codes

Errors return a JSON body with an error string.

Error body
{ "error": "Call not found" }
200 OK
201 Created
400 Bad request / validation
401 Unauthenticated
403 Forbidden (scope / agency)
404 Not found
409 Conflict (concurrent change)
503 Service unavailable

Incidents

Read and create incidents ("calls"), append notes, and pull the per-call audit log. All incident endpoints are agency-scoped.

GET/api/v1/callsread

List incidents, most recent first, with their assigned units and notes.

QueryTypeDescription
statusstringoptionalFilter by call status (e.g. Active, Pending, Closed).
unitstringoptionalOnly calls this unit name is assigned to.
limitintoptionalDefault 100, max 500.
offsetintoptionalDefault 0.
cURL
curl https://cad.youragency.gov/api/v1/calls?status=Active \
  -H "X-API-Key: {{YOUR_API_KEY}}"
200 · Response
{
  "count": 1,
  "data": [{
    "CallID": 48213,
    "DisplayCallID": "2026-004821",
    "CallStatus": "Active",
    "ProblemNature": "Cardiac Arrest",
    "PriorityLabel": "P1",
    "Address": "142 Oak St",
    "City": "Springfield",
    "AgencyCode": "FIRE",
    "Latitude": 37.771807,
    "Longitude": -121.996242,
    "CreatedAt": "2026-07-07T17:48:52-04:00",
    "Units": [{ "UnitName": "E12", "Status": "ONSCENE", "OnSceneAt": "2026-07-07T17:53:10-04:00" }],
    "Notes": [{ "NoteSequence": 1, "NoteText": "CPR in progress", "Dispatcher": "JD" }]
  }]
}
GET/api/v1/calls/{id}read

Retrieve one incident by CallID, including its units and full note thread. Returns 404 if not found, 403 if it belongs to another agency.

POST/api/v1/callswrite

Create an incident (CAD-Link ingest). The server resolves the problem nature and priority from your external IDs when supplied, and raises a new-call alert in CAD.

Body fieldTypeDescription
CitystringrequiredIncident city.
AddressstringrequiredStreet address.
AgencyCodestringrequiredOwning agency (must match your key's agency).
ProblemNaturestringoptionalNature text; resolved to a CAD nature.
ExternalNatureIDintoptionalYour nature ID; mapped via your tenant table first.
PriorityIDintoptionalCAD priority (default 3).
ExternalPriorityIDintoptionalYour priority ID; mapped via tenant table.
LocationNamestringoptionalCommon place name.
CallerName · CallbackPhone · CallSource · NotesstringoptionalCaller details & free-text.
cURL
curl -X POST https://cad.youragency.gov/api/v1/calls \
  -H "X-API-Key: {{YOUR_API_KEY}}" \
  -H "Content-Type: application/json" \
  -d '{
    "City": "Springfield",
    "Address": "142 Oak St",
    "AgencyCode": "FIRE",
    "ProblemNature": "Cardiac Arrest",
    "PriorityID": 1,
    "CallerName": "Jane Roe",
    "CallbackPhone": "555-0142"
  }'
201 · Response
{ "callId": 48213 }
POST/api/v1/calls/{id}/noteswrite

Append a note to an incident. If Dispatcher is omitted it defaults to API:<partner>.

Body fieldTypeDescription
NoteTextstringrequiredThe note.
DispatcherstringoptionalAuthor label.
200 · Response
{ "noteSequence": 4 }
PUT/api/v1/calls/{id}write

Partial update — only the fields you send are written. Accepts City, Address, ApartmentFloor, LocationName, CallbackPhone, CrossStreet, ProblemNature (strings), ProblemNatureID, Priority, AlarmLevel, ResponsePlanID, ResponseAreaID, OPSChannelID (ints), and Latitude, Longitude (doubles).

200 · Response
{ "updated": 2 }
GET/api/v1/calls/{id}/logread

The audit trail for a call — each entry has ActionType, ActionDetail, PerformedBy, and Timestamp.

Units

Read-only unit roster with live status, crew, location, MDT connectivity, and current assignment.

GET/api/v1/unitsread

List units and their live status.

QueryTypeDescription
statusstringoptionalFilter by status key (e.g. AVAILABLE).
resourcestringoptionalFilter by primary resource type (e.g. ENGINE).
200 · Response
{
  "count": 1,
  "data": [{
    "UnitID": 57,
    "UnitName": "E12",
    "PrimaryResource": "ENGINE",
    "Status": "ONSCENE",
    "StatusDisplayName": "On Scene",
    "CrewNames": "Alvarez, Chen",
    "IsMdtOnline": true,
    "Latitude": 37.7718, "Longitude": -121.9962,
    "ActiveCall": "2026-004821 - Cardiac Arrest"
  }]
}
GET/api/v1/units/{id}read

Retrieve a single unit by UnitID.

Dispatch actions

The operational surface: read the reference data a dispatcher needs, then mutate calls and units. Status changes are workflow-enforced and concurrency-safe.

Reference data read

GET endpoints for the data that drives dispatch decisions:

EndpointReturns
/api/v1/dispatch/agenciesAgencies with colors, sector mode, response-plan usage.
/api/v1/dispatch/response-areasResponse areas (filter by agency, city).
/api/v1/dispatch/response-areas/{id}One area with its units & fallbacks.
/api/v1/dispatch/response-plansResponse plans (filter by agency).
/api/v1/dispatch/response-plans/{id}One plan with its resource requirements.
/api/v1/dispatch/resolve-response-planTiered resolve → the plan for a city + nature (+ area/location).
/api/v1/dispatch/dispositionsDisposition codes.
/api/v1/dispatch/status-colorsStatus keys with colors & workflow ranks.
/api/v1/dispatch/ops-channelsRadio / ops channels.
/api/v1/dispatch/reporting-party-typesReporting-party types.
PUT/api/v1/dispatch/units/{unitId}/statuswrite

Change a unit's status. The CAD workflow is enforced (forward-only through DISPATCHED → ENROUTE → ONSCENE → TRANSPORTING → ATDESTINATION; global statuses like AVAILABLE reset the tier). Idle statuses are blocked while the unit has active calls.

Body fieldTypeDescription
StatusKeystringrequiredTarget status (e.g. ENROUTE).
CallIdintoptionalCall context for the status change.
200 · Response
{ "unitId": 57, "unitName": "E12", "status": "ENROUTE", "workflowRank": 20, "previousStatus": "DISPATCHED" }
400 Illegal workflow transition
404 Unit not found
409 Status already changed by another dispatcher / MDT
POST/api/v1/dispatch/calls/{callId}/assign-unitwrite

Assign a unit to a call. Body: { "UnitId": 57 }. Returns 400 if the unit is already assigned.

200 · Response
{ "assigned": true, "callId": 48213, "unitId": 57, "unitName": "E12" }
PUT/api/v1/dispatch/calls/{id}/closewrite

Close a call — clears its units and applies a disposition. Body: { "DispositionId": 4, "DispositionText": "Transported", "CloseNotes": "..." }. Returns 400 if already closed.

200 · Response
{ "closed": true, "callId": 48213, "unitsCleared": 2 }

More call actions write

EndpointBodyDoes
PUT …/calls/{callId}/clear-unit/{unitId}—Clear one unit off a call.
PUT …/calls/{callId}/reassign—Clear all units, return call to Pending.
PUT …/calls/{callId}/response-plan{ResponsePlanId}Set the response plan.
PUT …/calls/{callId}/response-area{ResponseAreaId}Set the response area.
PUT …/calls/{callId}/alarm-level{AlarmLevel}Set the alarm level.
PUT …/calls/{callId}/ops-channel{OpsChannelId}Assign a radio channel.
PUT …/units/{unitId}/quick-note{Note}Set a unit quick-note.

Stations

Read-only station roster and the units & active calls tied to each — the backbone of station alerting.

EndpointReturns
GET /api/v1/stationsreadStations (filter by agency) with unit counts.
GET /api/v1/stations/{id}readOne station.
GET /api/v1/stations/{id}/unitsreadUnits housed at the station, with live status.
GET /api/v1/stations/{id}/callsreadActive/Pending calls a station unit is on — full incident detail for alerting.

Lookups

Call-taking reference data.

EndpointReturns
GET /api/v1/lookups/naturesreadProblem natures (agency + ALL) with default priority.
GET /api/v1/lookups/prioritiesreadPriorities with labels & colors.

Recommendations

The same unit-recommendation engine the dispatch console uses — which units to send for a call, per its response plan and alarm level.

GET/api/v1/recommend/call/{callId}read

Recommend units for a call. Returns the plan's needs (resource, required, filled, met) and ranked candidate units.

200 · Response
{
  "callId": 48213, "alarmLevel": 1, "responsePlanId": 30,
  "needs": [{ "resource": "ENGINE", "required": 2, "filled": 1, "met": false }],
  "data": [{ "unitId": 57, "unitName": "E12", "primaryResource": "ENGINE", "status": "AVAILABLE", "sectorRank": 1, "matchType": "primary" }]
}
EndpointReturns
GET /api/v1/recommend/availablereadAvailable units for manual add (callId required; resource filter).
GET /api/v1/recommend/resourcesreadPrimary resource types.

Geo & addresses

Address search, intersections, city list, and response-area resolution from your GIS.

GET/api/v1/geo/searchread

Address search. Auto-detects an intersection when the query contains & or /.

QueryTypeDescription
qstringrequiredSearch text (min 2 chars).
citystringoptionalRestrict to a city.
limitintoptionalDefault 40, max 100.
EndpointReturns
GET /api/v1/geo/citiesreadCity list.
GET /api/v1/geo/address/{locationId}readOne geocoded address.
GET /api/v1/geo/resolve-response-areareadResolve the response area for a location (locationId + agency required).

E911 / phone integration

Push inbound 911 calls from your phone system into CAD, poll pending calls, and manage CAD positions.

POST/api/v1/e911/incomingwrite

Your phone system pushes a 911 call. It's staged and raises an alert on the target workstation.

Body fieldTypeDescription
ANIstringCaller number.
ALI_Address · ALI_City · ALI_StatestringALI location.
Latitude · LongitudedoubleCaller position.
ClassOfService · CallType · TrunkIDstringTelephony metadata.
WorkstationstringTarget CAD position name.
200 · Response
{ "e911Id": 9012, "status": "staged", "positionId": 3 }
EndpointDoes
GET /api/v1/e911/pendingreadCAD polls unprocessed 911 calls (by workstation).
PUT /api/v1/e911/{id}/answerwriteMark the call answered.
PUT /api/v1/e911/{id}/processwriteClaim / link the call to an incident.
GET /api/v1/e911/positionsreadList CAD positions.
POST /api/v1/e911/positionsadminCreate a CAD position.

Mobile / MDT

A separate tier for the in-vehicle MDT client under /api/mobile. It uses session bearer tokens, not API keys.

Auth flow
# 1. Exchange a license key + unit + password for a token
curl -X POST https://cad.youragency.gov/api/mobile/login \
  -H "Content-Type: application/json" \
  -d '{ "LicenseKey": "…", "UnitName": "E12", "Password": "…" }'
# → { "token": "…", "expiresAt": "…", "unit": {…} }

# 2. Use it as a bearer token (12-hour session)
curl https://cad.youragency.gov/api/mobile/calls \
  -H "Authorization: Bearer <token>"
EndpointDoes
GET /api/mobile/units?licenseKey=Units available for mobile login (open).
POST /api/mobile/loginGet a session token (open).
POST /api/mobile/heartbeatKeep the session alive.
GET /api/mobile/calls · /calls/{id}This unit's calls & detail.
POST /api/mobile/calls/{id}/notesAdd a note from the field.
GET /api/mobile/units/meThis unit's info.
PUT /api/mobile/units/me/statusChange own status.
PUT /api/mobile/units/me/locationPush GPS location.
GET /api/mobile/destinationsTransport destinations.
POST /api/mobile/calls/{id}/transportStart / record transport.

Health

An unauthenticated liveness probe with a database check.

GET/health
200 · Response
{ "status": "healthy", "database": "connected", "timestamp": "2026-07-07T21:48:52Z" }