Sharing
List Agent Grants
GET
/api/conversations/shares/grants/{agent_id}List active grants for an agent, for its creator's share/revoke UI.
/api/identity/grants/mapping is restricted to L1/L2 admins, so an L3
creator had no way to see who holds access to their own agent — shares were
invisible and effectively un-revokable from the UI.
Authorised with the same manage_grants check as POST /share/revoke/...,
so the set of people who can see a grant is exactly the set who can revoke
it. AccessDeniedError and ResourceNotFoundError are translated to 403 /
404 by the global handlers in routes/__init__.py.
Each item's id is the grant id to pass to the revoke endpoint.
Parameters
Path
agent_idstringrequiredUnique UUID of the target AI Agent.
Responses
200 Successful Response
400 Bad Request - The request parameters or headers are invalid (e.g. unsupported API-Version).
401 Unauthorized - Missing, invalid, or expired JWT Bearer token.
403 Forbidden - Insufficient role permissions or resource access denied by RBAC policy.
404 Not Found - The requested resource ID was not found.
422 Validation Error
detailobject[]detail[].locstring | integer[]requireddetail[].msgstringrequireddetail[].typestringrequireddetail[].inputobjectdetail[].ctxobject{
"detail": [
{
"loc": [
null
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}Example
curl -X GET "$PINTER_URL/api/conversations/shares/grants/agnt_risk_compliance_01" \
-H "Authorization: Bearer $ACCESS_TOKEN"