Aller au contenu

Lire la liste complète des privilèges accordés au propriétaire d’un agent

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

Every group, admin role and application entitlement the agent's owner holds, with the scope it applies to, whether it was assigned directly or inherited through a group, and whether it is standing or merely PIM-eligible. Ordered admin roles first, then groups, then application entitlements, most-privileged first inside each. Served from stored state — no directory call is made on this path. An agent with no human owner returns an empty list and a null tier rather than a 404: there is no owner to describe, which is an answer.

Fenêtre de terminal
curl --fail-with-body -X GET 'https://app.openlatch.ai/api/public/v1/agents/<agent_id>/ownership/privileges' \
-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.
ParamètreTypeDescription
projectionstring — one of full, reachreach returns only the distinct-permission projection, with an empty grant list.
ChampTypeDescription
capabilitiesobject
evaluated_atstring (date-time) or null
grantsarray of object
grants[].display_namestring or null
grants[].external_idstringObligatoire.
grants[].kindstringObligatoire.
grants[].permissionsarray of string
grants[].scopestring or null
grants[].sourcestringObligatoire.
grants[].tierstringObligatoire.
reacharray of object
reach[].permissionstringObligatoire.
reach[].tierstring or null
tierstring or null
{
"capabilities": {},
"evaluated_at": "2026-01-15T14:32:05Z",
"grants": [
{
"display_name": "release-bot",
"external_id": "3f6c1a2e-8b4d-4c1f-9a7e-0d5b2c8e4f10",
"kind": "string",
"permissions": [
"string"
],
"scope": "string",
"source": "string",
"tier": "string"
}
],
"reach": [
{
"permission": "string",
"tier": "string"
}
],
"tier": "string"
}