Hanzo AI
OpenapiPatrol

List tour

Lists patrol rounds with their checkpoints — the proof-of-presence record.

GET /v1/patrol/tour

Addresshttps://api.hanzo.ai/v1/patrol/tour
MethodGET
Operationget_patrol_tour
AuthAuthorization: Bearer $HANZO_API_KEY

Lists patrol rounds with their checkpoints — the proof-of-presence record. ?date=today narrows it to the current day.

Request

1 field.

FieldInTypeRequiredDescription
datequerystringDate narrows the list to one day, as YYYY-MM-DD.

Response

StatusBodyMeaning
200patrol.patrolTourListok
defaultproblem-detailsrefused

200 body — 20 fields.

FieldInTypeAlwaysDescription
databodypatrol.patrolTour[]Data is the matching rounds, each with its checkpoints.
data[].datebodystringDate is the day the round belongs to.
data[].endbodystringEnd is when it finished.
data[].namebodystringName is the tour's document name.
data[].pointsbodypatrol.patrolCheckpoint[]Points is the round's checkpoints in store order.
data[].points[].actorbodystringActor is who confirmed it.
data[].points[].atbodystringAt is when it was confirmed, or empty.
data[].points[].closebodystringClose is when that window shuts.
data[].points[].latbodynumber (double)Lat is the latitude the confirmation was taken at.
data[].points[].lonbodynumber (double)Lon is the longitude the confirmation was taken at.
data[].points[].methodbodystringMethod is how it was confirmed: tag, scan, fence, manual or photo.
data[].points[].namebodystringName is the checkpoint's document name and the segment /v1/patrol/point/{name}/confirm addresses it by.
data[].points[].openbodystringOpen is when the window to confirm it opens.
data[].points[].photobodystringPhoto is the object key of the photo taken, or empty.
data[].points[].sitebodystringSite is the site to attend.
data[].points[].statebodystringState is pending, done, late or skipped.
data[].points[].tagbodystringTag is the tag or marker to read there.
data[].points[].tourbodystringTour is the round this checkpoint belongs to.
data[].startbodystringStart is when the round began.
data[].unitbodystringUnit is the call sign running the round.

Failure carries the platform error shape — see Errors.

Examples

hanzo patrol tour

Patrol API · All Hanzo APIs · Interactive reference

How is this guide?

On this page