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 URL | https://cad.youragency.gov |
| Integration prefix | /api/v1 |
| Mobile / MDT prefix | /api/mobile |
| Format | JSON request & response · UTF-8 |
| Transport | HTTPS only |
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.
X-API-Key: {{YOUR_API_KEY}}
Scopes
Each key carries one or more scopes. Endpoints below are labelled with the scope they require.
| Scope | Grants |
|---|---|
| read | Read incidents, units, stations, reference & geo data. |
| write | Create calls, add notes, change statuses, assign/clear units, close calls. |
| admin | Everything, 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.
Conventions
List envelope
List endpoints return a count and a data array. Detail endpoints return the object directly.
{ "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": "Call not found" }
Incidents
Read and create incidents ("calls"), append notes, and pull the per-call audit log. All incident endpoints are agency-scoped.
List incidents, most recent first, with their assigned units and notes.
| Query | Type | Description | |
|---|---|---|---|
| status | string | optional | Filter by call status (e.g. Active, Pending, Closed). |
| unit | string | optional | Only calls this unit name is assigned to. |
| limit | int | optional | Default 100, max 500. |
| offset | int | optional | Default 0. |
curl https://cad.youragency.gov/api/v1/calls?status=Active \ -H "X-API-Key: {{YOUR_API_KEY}}"
{
"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" }]
}]
}
Retrieve one incident by CallID, including its units and full note thread. Returns 404 if not found, 403 if it belongs to another agency.
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 field | Type | Description | |
|---|---|---|---|
| City | string | required | Incident city. |
| Address | string | required | Street address. |
| AgencyCode | string | required | Owning agency (must match your key's agency). |
| ProblemNature | string | optional | Nature text; resolved to a CAD nature. |
| ExternalNatureID | int | optional | Your nature ID; mapped via your tenant table first. |
| PriorityID | int | optional | CAD priority (default 3). |
| ExternalPriorityID | int | optional | Your priority ID; mapped via tenant table. |
| LocationName | string | optional | Common place name. |
| CallerName · CallbackPhone · CallSource · Notes | string | optional | Caller details & free-text. |
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" }'
{ "callId": 48213 }
Append a note to an incident. If Dispatcher is omitted it defaults to API:<partner>.
| Body field | Type | Description | |
|---|---|---|---|
| NoteText | string | required | The note. |
| Dispatcher | string | optional | Author label. |
{ "noteSequence": 4 }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).
{ "updated": 2 }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.
List units and their live status.
| Query | Type | Description | |
|---|---|---|---|
| status | string | optional | Filter by status key (e.g. AVAILABLE). |
| resource | string | optional | Filter by primary resource type (e.g. ENGINE). |
{
"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"
}]
}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:
| Endpoint | Returns |
|---|---|
| /api/v1/dispatch/agencies | Agencies with colors, sector mode, response-plan usage. |
| /api/v1/dispatch/response-areas | Response areas (filter by agency, city). |
| /api/v1/dispatch/response-areas/{id} | One area with its units & fallbacks. |
| /api/v1/dispatch/response-plans | Response plans (filter by agency). |
| /api/v1/dispatch/response-plans/{id} | One plan with its resource requirements. |
| /api/v1/dispatch/resolve-response-plan | Tiered resolve → the plan for a city + nature (+ area/location). |
| /api/v1/dispatch/dispositions | Disposition codes. |
| /api/v1/dispatch/status-colors | Status keys with colors & workflow ranks. |
| /api/v1/dispatch/ops-channels | Radio / ops channels. |
| /api/v1/dispatch/reporting-party-types | Reporting-party types. |
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 field | Type | Description | |
|---|---|---|---|
| StatusKey | string | required | Target status (e.g. ENROUTE). |
| CallId | int | optional | Call context for the status change. |
{ "unitId": 57, "unitName": "E12", "status": "ENROUTE", "workflowRank": 20, "previousStatus": "DISPATCHED" }Assign a unit to a call. Body: { "UnitId": 57 }. Returns 400 if the unit is already assigned.
{ "assigned": true, "callId": 48213, "unitId": 57, "unitName": "E12" }Close a call — clears its units and applies a disposition. Body: { "DispositionId": 4, "DispositionText": "Transported", "CloseNotes": "..." }. Returns 400 if already closed.
{ "closed": true, "callId": 48213, "unitsCleared": 2 }More call actions write
| Endpoint | Body | Does |
|---|---|---|
| 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.
| Endpoint | Returns | |
|---|---|---|
| GET /api/v1/stations | read | Stations (filter by agency) with unit counts. |
| GET /api/v1/stations/{id} | read | One station. |
| GET /api/v1/stations/{id}/units | read | Units housed at the station, with live status. |
| GET /api/v1/stations/{id}/calls | read | Active/Pending calls a station unit is on — full incident detail for alerting. |
Lookups
Call-taking reference data.
| Endpoint | Returns | |
|---|---|---|
| GET /api/v1/lookups/natures | read | Problem natures (agency + ALL) with default priority. |
| GET /api/v1/lookups/priorities | read | Priorities 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.
Recommend units for a call. Returns the plan's needs (resource, required, filled, met) and ranked candidate units.
{
"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" }]
}| Endpoint | Returns | |
|---|---|---|
| GET /api/v1/recommend/available | read | Available units for manual add (callId required; resource filter). |
| GET /api/v1/recommend/resources | read | Primary resource types. |
Geo & addresses
Address search, intersections, city list, and response-area resolution from your GIS.
Address search. Auto-detects an intersection when the query contains & or /.
| Query | Type | Description | |
|---|---|---|---|
| q | string | required | Search text (min 2 chars). |
| city | string | optional | Restrict to a city. |
| limit | int | optional | Default 40, max 100. |
| Endpoint | Returns | |
|---|---|---|
| GET /api/v1/geo/cities | read | City list. |
| GET /api/v1/geo/address/{locationId} | read | One geocoded address. |
| GET /api/v1/geo/resolve-response-area | read | Resolve 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.
Your phone system pushes a 911 call. It's staged and raises an alert on the target workstation.
| Body field | Type | Description |
|---|---|---|
| ANI | string | Caller number. |
| ALI_Address · ALI_City · ALI_State | string | ALI location. |
| Latitude · Longitude | double | Caller position. |
| ClassOfService · CallType · TrunkID | string | Telephony metadata. |
| Workstation | string | Target CAD position name. |
{ "e911Id": 9012, "status": "staged", "positionId": 3 }| Endpoint | Does | |
|---|---|---|
| GET /api/v1/e911/pending | read | CAD polls unprocessed 911 calls (by workstation). |
| PUT /api/v1/e911/{id}/answer | write | Mark the call answered. |
| PUT /api/v1/e911/{id}/process | write | Claim / link the call to an incident. |
| GET /api/v1/e911/positions | read | List CAD positions. |
| POST /api/v1/e911/positions | admin | Create 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.
# 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>"
| Endpoint | Does |
|---|---|
| GET /api/mobile/units?licenseKey= | Units available for mobile login (open). |
| POST /api/mobile/login | Get a session token (open). |
| POST /api/mobile/heartbeat | Keep the session alive. |
| GET /api/mobile/calls · /calls/{id} | This unit's calls & detail. |
| POST /api/mobile/calls/{id}/notes | Add a note from the field. |
| GET /api/mobile/units/me | This unit's info. |
| PUT /api/mobile/units/me/status | Change own status. |
| PUT /api/mobile/units/me/location | Push GPS location. |
| GET /api/mobile/destinations | Transport destinations. |
| POST /api/mobile/calls/{id}/transport | Start / record transport. |
Health
An unauthenticated liveness probe with a database check.
{ "status": "healthy", "database": "connected", "timestamp": "2026-07-07T21:48:52Z" }