Pinter
ENID
Sharing
View as Markdown

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_idstringrequired
Unique 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[]required
detail[].msgstringrequired
detail[].typestringrequired
detail[].inputobject
detail[].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"