Ir al contenido

Lo que se aplica a este agente

GET/api/public/v1/agents/{agent_id}/zone

The assigned zone, how it was assigned, the layer stack top-down, and every effective policy with the layer that authored it and whether that layer is the agent's own (authored_here / inherited). Resolved by app/zones/resolution.py — the one implementation every zone surface shares.

Ventana de terminal
curl --fail-with-body -X GET 'https://app.openlatch.ai/api/public/v1/agents/<agent_id>/zone' \
-H "Authorization: Bearer $OPENLATCH_API_KEY"
Rol en la organizaciónEste punto de conexión
ownerPermitido
adminPermitido
editorPermitido
viewerPermitido

Una clave tiene el rol que su propietario ocupa en la organización. Consulte Autenticación.

Ámbito de la clave de API: zones:read

ParámetroTipoDescripción
agent_idstringObligatorio.
CampoTipoDescripción
assigned_zonestring or nullObligatorio.
assignment_sourcestringObligatorio.
capabilitiesobject or null
capabilities.askbooleanObligatorio. Can show its own prompt to the developer.
capabilities.enforcesstringObligatorio. all, or shell_only: which tools its refusals actually reach.
capabilities.noticebooleanObligatorio. Can show a non-blocking message.
capabilities.observes_executionbooleanObligatorio. Emits a post-execution event, so an answer can be inferred.
clientobjectObligatorio. What the install last told us about itself.
client.bundle_revisionstring or null
client.omitted_kindsarray of stringObligatorio.
client.versionstring or null
compatibilityobjectObligatorio. Per-family compatibility posture for one install, keyed by contract family.
compatibility.familiesobjectObligatorio.
control_levelstringObligatorio.
effectivearray of objectObligatorio.
effective[].dimensionsarray of stringObligatorio.
effective[].display_titlestringThe AIP's name: its title, else its generated_title, else its statement.
effective[].enforced_on_this_installbooleanObligatorio.
effective[].modestringObligatorio.
effective[].optimizearray of object
effective[].optimize_previewarray of object
effective[].origin_layer_idstringObligatorio.
effective[].origin_layer_labelstringObligatorio.
effective[].policy_idstringObligatorio.
effective[].public_idstringObligatorio.
effective[].standingstringObligatorio.
effective[].statementstringObligatorio.
kpisobjectObligatorio.
kpis.anomalies_14dinteger
kpis.authored_hereintegerObligatorio.
kpis.enforcing_nintegerObligatorio.
kpis.enforcing_ofintegerObligatorio.
kpis.inheritedintegerObligatorio.
kpis.policies_in_forceintegerObligatorio.
layersarray of objectObligatorio.
layers[].depthintegerObligatorio.
layers[].labelstringObligatorio.
layers[].unit_idstringObligatorio.
stalebooleanObligatorio.
{
"assigned_zone": "string",
"assignment_source": "string",
"capabilities": {
"ask": false,
"enforces": "string",
"notice": false,
"observes_execution": false
},
"client": {
"bundle_revision": "string",
"omitted_kinds": [
"string"
],
"version": "string"
},
"compatibility": {
"families": {}
},
"control_level": "string",
"effective": [
{
"dimensions": [
"string"
],
"display_title": "",
"enforced_on_this_install": false,
"mode": "string",
"optimize": [
{
"atom_id": "3f6c1a2e-8b4d-4c1f-9a7e-0d5b2c8e4f10",
"directive": {
"lever": "effort_clamp",
"params": {}
}
}
],
"optimize_preview": [
{}
],
"origin_layer_id": "3f6c1a2e-8b4d-4c1f-9a7e-0d5b2c8e4f10",
"origin_layer_label": "string",
"policy_id": "3f6c1a2e-8b4d-4c1f-9a7e-0d5b2c8e4f10",
"public_id": "3f6c1a2e-8b4d-4c1f-9a7e-0d5b2c8e4f10",
"standing": "string",
"statement": "string"
}
],
"kpis": {
"anomalies_14d": 0,
"authored_here": 3,
"enforcing_n": 3,
"enforcing_of": 3,
"inherited": 3,
"policies_in_force": 3
},
"layers": [
{
"depth": 3,
"label": "string",
"unit_id": "3f6c1a2e-8b4d-4c1f-9a7e-0d5b2c8e4f10"
}
],
"stale": false
}