Hanzo AI
OpenapiPatrol

List incident

Lists responses.

GET /v1/patrol/incident

Addresshttps://api.hanzo.ai/v1/patrol/incident
MethodGET
Operationget_patrol_incident
AuthAuthorization: Bearer $HANZO_API_KEY

Lists responses. ?open=1 narrows it to the ones still running.

Request

2 fields.

FieldInTypeRequiredDescription
openqueryintegerOpen lists only the incidents that are not closed when it is 1.
limitqueryintegerLimit caps how many are returned.

Response

StatusBodyMeaning
200patrol.patrolIncidentListok
defaultproblem-detailsrefused

200 body — 34 fields.

FieldInTypeAlwaysDescription
databodypatrol.patrolIncident[]Data is the matching incidents, without their trails.
data[].checkedbodystringChecked is when the premises had been walked.
data[].clocksbodypatrol.patrolClock[]Clocks is the SLA clocks, present on a single-incident read.
data[].clocks[].elapsedbodyinteger (int64)Elapsed is the seconds run so far, or the seconds it took when settled.
data[].clocks[].labelbodystringLabel names the clock: Verify, Dispatch or On site.
data[].clocks[].settledbodyinteger (int64)Settled is the seconds it took, or -1 while the clock is still running.
data[].clocks[].targetbodyinteger (int64)Target is the contracted seconds.
data[].closedbodystringClosed is when the incident was closed.
data[].dispatchedbodystringDispatched is when a unit was assigned.
data[].enroutebodystringEnroute is when that unit started moving.
data[].escalatedbodystringEscalated is when it was escalated, or empty.
data[].falsebodybooleanFalse says the activation turned out to be nothing.
data[].filedbodystringFiled is when the report was written.
data[].namebodystringName is the incident's document name.
data[].onsitebodystringOnsite is when it arrived.
data[].openedbodystringOpened is when the activation landed.
data[].outcomebodystringOutcome is what it came to.
data[].refbodystringRef is the receiving centre's own reference.
data[].securedbodystringSecured is when the site was made safe.
data[].sitebodystringSite is where it is happening.
data[].slabodyinteger (int64)SLA is the contracted response time in minutes.
data[].statebodystringState is one of received, verified, dispatched, enroute, onsite, checked, secured, filed and closed.
data[].stepsbodypatrol.patrolAct[]Steps is the act trail, present on a single-incident read.
data[].steps[].actbodystringAct is the act performed.
data[].steps[].actorbodystringActor is who performed it.
data[].steps[].atbodystringAt is when it happened.
data[].steps[].detailbodystringDetail is what they wrote with it.
data[].steps[].frombodystringFrom is the state the incident left.
data[].steps[].tobodystringTo is the state it landed in.
data[].tierbodystringTier is the site's contracted service tier.
data[].triggerbodystringTrigger is what the panel reported.
data[].unitbodystringUnit is the call sign attending, or empty.
data[].verifiedbodystringVerified is when the activation was confirmed real.
data[].zonebodystringZone is the panel zone that reported.

Failure carries the platform error shape — see Errors.

Examples

hanzo patrol incident list

Patrol API · All Hanzo APIs · Interactive reference

How is this guide?

On this page