Skip to content

Who would arrive if this unit's Autonomy Zone were enabled

GET/api/public/v1/org-units/{unit_id}/zone/preview

Agents with no manual assignment whose placement sits at or under the unit and whose current zone is above it — the agents for which the new zone would become the deepest — each with the placement link that brings it (owner · accountable_person · accountable_unit) and whether that link was set by hand. auto_arrivals is the total; agents lists the first 500 by display name. 409 ZONE_EXISTS when the unit already carries a zone.

Terminal window
curl --fail-with-body -X GET 'https://app.openlatch.ai/api/public/v1/org-units/<unit_id>/zone/preview' \
-H "Authorization: Bearer $OPENLATCH_API_KEY"
Role in the organizationThis endpoint
ownerAllowed
adminAllowed
editorNot allowed
viewerNot allowed

A key carries the role its owner holds in the organization. See Authentication.

API key scope: zones:read

ParameterTypeDescription
unit_idstring (uuid)Required.
FieldTypeDescription
agentsarray of objectRequired.
agents[].agent_idstringRequired.
agents[].current_zoneobjectRequired.
agents[].current_zone.idstringRequired.
agents[].current_zone.labelstringRequired.
agents[].reasonobjectRequired.
agents[].reason.kindstring — one of owner, accountable_person, accountable_unitRequired.
agents[].reason.personobject or null
agents[].reason.sourcestring — one of directory, manualRequired.
agents[].reason.unitstringRequired.
auto_arrivalsintegerRequired.
{
"agents": [
{
"agent_id": "agt_01jbwa2k1vfrn9y42xhgxhmzj2",
"current_zone": {
"id": "3f6c1a2e-8b4d-4c1f-9a7e-0d5b2c8e4f10",
"label": "string"
},
"reason": {
"kind": "owner",
"person": "string",
"source": "directory",
"unit": "string"
}
}
],
"auto_arrivals": 3
}