Aller au contenu

Lire le propriétaire d’un agent

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

Owner (or service + accountable ref), function, the stored resolution evidence as signals, and the owner's directory freshness — served verbatim from stored state. Never re-runs the ladder and makes no directory call. A not-yet-resolved agent returns owner_kind: null with every signal outcome not_evaluated — bar a shared-key provideracct, which is ignored.

Fenêtre de terminal
curl --fail-with-body -X GET 'https://app.openlatch.ai/api/public/v1/agents/<agent_id>/ownership' \
-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 : agents:read

ParamètreTypeDescription
agent_idstringObligatoire.
ChampTypeDescription
capture_capableboolean
functionstring or null
function_confidencenumber or null
function_sourcestring or null
ownerobject or null
owner.display_namestring or null
owner.emailstring or null
owner.org_unitobject or null
owner.person_idstringObligatoire.
owner.privilegeobject or null
owner.statusstringObligatoire.
owner.titlestring or null
owner_kindstring or null
owner_resolved_atstring (date-time) or null
owner_sourcestring or null
providerobject or null
provider.display_namestringObligatoire.
provider.idstringObligatoire.
provider.kindstringObligatoire.
provider.last_synced_atstring (date-time) or null
provider.staleboolean
serviceobject or null
service.accountable_org_unitobject or null
service.accountable_personobject or null
service.labelstring or null
signalsarray of object
signals[].kindstringObligatoire.
signals[].outcomestringObligatoire.
signals[].valuestring or null
unattributed_reasonstring or null
unattributed_sincestring (date-time) or null
{
"capture_capable": true,
"function": "string",
"function_confidence": 0.25,
"function_source": "string",
"owner": {
"display_name": "release-bot",
"email": "ada@example.com",
"org_unit": {
"id": "3f6c1a2e-8b4d-4c1f-9a7e-0d5b2c8e4f10",
"name": "release-bot",
"path": "Engineering / Platform"
},
"person_id": "3f6c1a2e-8b4d-4c1f-9a7e-0d5b2c8e4f10",
"privilege": {
"capabilities": {},
"evaluated_at": "2026-01-15T14:32:05Z",
"grant_count": 0,
"grant_counts": {},
"tier": "string"
},
"status": "string",
"title": "string"
},
"owner_kind": "string",
"owner_resolved_at": "2026-01-15T14:32:05Z",
"owner_source": "string",
"provider": {
"display_name": "release-bot",
"id": "3f6c1a2e-8b4d-4c1f-9a7e-0d5b2c8e4f10",
"kind": "string",
"last_synced_at": "2026-01-15T14:32:05Z",
"stale": false
},
"service": {
"accountable_org_unit": {
"id": "3f6c1a2e-8b4d-4c1f-9a7e-0d5b2c8e4f10",
"name": "release-bot",
"path": "Engineering / Platform"
},
"accountable_person": {
"display_name": "release-bot",
"email": "ada@example.com",
"org_unit": {},
"person_id": "3f6c1a2e-8b4d-4c1f-9a7e-0d5b2c8e4f10",
"privilege": {},
"status": "string",
"title": "string"
},
"label": "string"
},
"signals": [
{
"kind": "string",
"outcome": "string",
"value": "string"
}
],
"unattributed_reason": "Never push to main without a review.",
"unattributed_since": "2026-01-15T14:32:05Z"
}