Aller au contenu

Ce qui s’applique à cet agent

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.

Fenêtre 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"
Rôle dans l’organisationCe point de terminaison
ownerAutorisé
adminAutorisé
editorAutorisé
viewerAutorisé

Une clé porte le rôle que son propriétaire détient dans l’organisation. Voir Authentification.

Portée de clé d’API : zones:read

ParamètreTypeDescription
agent_idstringObligatoire.
ChampTypeDescription
assigned_zonestring or nullObligatoire.
assignment_sourcestringObligatoire.
capabilitiesobject or null
capabilities.askbooleanObligatoire. Can show its own prompt to the developer.
capabilities.enforcesstringObligatoire. all, or shell_only: which tools its refusals actually reach.
capabilities.noticebooleanObligatoire. Can show a non-blocking message.
capabilities.observes_executionbooleanObligatoire. Emits a post-execution event, so an answer can be inferred.
clientobjectObligatoire. What the install last told us about itself.
client.bundle_revisionstring or null
client.omitted_kindsarray of stringObligatoire.
client.versionstring or null
compatibilityobjectObligatoire. Per-family compatibility posture for one install, keyed by contract family.
compatibility.familiesobjectObligatoire.
control_levelstringObligatoire.
effectivearray of objectObligatoire.
effective[].dimensionsarray of stringObligatoire.
effective[].display_titlestringThe AIP's name: its title, else its generated_title, else its statement.
effective[].enforced_on_this_installbooleanObligatoire.
effective[].modestringObligatoire.
effective[].optimizearray of object
effective[].optimize_previewarray of object
effective[].origin_layer_idstringObligatoire.
effective[].origin_layer_labelstringObligatoire.
effective[].policy_idstringObligatoire.
effective[].public_idstringObligatoire.
effective[].standingstringObligatoire.
effective[].statementstringObligatoire.
kpisobjectObligatoire.
kpis.anomalies_14dinteger
kpis.authored_hereintegerObligatoire.
kpis.enforcing_nintegerObligatoire.
kpis.enforcing_ofintegerObligatoire.
kpis.inheritedintegerObligatoire.
kpis.policies_in_forceintegerObligatoire.
layersarray of objectObligatoire.
layers[].depthintegerObligatoire.
layers[].labelstringObligatoire.
layers[].unit_idstringObligatoire.
stalebooleanObligatoire.
{
"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
}