Ir al contenido

Leer la lista completa de privilegios concedidos al propietario de un agente

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.

Ventana 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"
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: agents:read

ParámetroTipoDescripción
agent_idstringObligatorio.
ParámetroTipoDescripción
projectionstring — one of full, reachreach returns only the distinct-permission projection, with an empty grant list.
CampoTipoDescripción
capabilitiesobject
evaluated_atstring (date-time) or null
grantsarray of object
grants[].display_namestring or null
grants[].external_idstringObligatorio.
grants[].kindstringObligatorio.
grants[].permissionsarray of string
grants[].scopestring or null
grants[].sourcestringObligatorio.
grants[].tierstringObligatorio.
reacharray of object
reach[].permissionstringObligatorio.
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"
}