Hanzo AI
OpenapiPatrol

List key

Lists the key register. Neither the officer nor the client reaches it: patrol.key is its own DocType and its permissions name neither, so there is no key…

GET /v1/patrol/key

Addresshttps://api.hanzo.ai/v1/patrol/key
MethodGET
Operationget_patrol_key
AuthAuthorization: Bearer $HANZO_API_KEY

Lists the key register. Neither the officer nor the client reaches it: patrol.key is its own DocType and its permissions name neither, so there is no key row for either to read.

Request

GET /v1/patrol/key takes no parameters and no body — the credential is the whole request.

Response

StatusBodyMeaning
200patrol.patrolKeyListok
defaultproblem-detailsrefused

200 body — 6 fields.

FieldInTypeAlwaysDescription
databodypatrol.patrolKey[]Data is every key set held.
data[].holderbodystringHolder is who has it now.
data[].movedbodystringMoved is when it last changed hands.
data[].namebodystringName is the key set's reference, which is its document name.
data[].sitebodystringSite is the site the keys open.
data[].wherebodystringWhere is where the set is kept.

Failure carries the platform error shape — see Errors.

Examples

hanzo patrol key list

Patrol API · All Hanzo APIs · Interactive reference

How is this guide?

On this page