Skip to main content
GET
Get an agent's grants
Returns the agent’s writable grant intent. To see the effect after organization rules apply, call the Effective policy endpoints. See Agent access for how grants work. Everything granted to one agent: the app connections it may use (with the per-tool allow/ask lists when access is custom, and any resource scoping) and the secrets attached to it. Grants are the writable intent. To see the effect — what requests actually get through once organization policy is applied on top — use GET /agents/{agentId}/effective-credentials and GET /policy/effective-app-permissions.
Availability: Cloud · Community (self-hosted) · Enterprise (self-hosted)

Authorizations

Authorization
string
header
required

A workspace API key (oc_…) or organization API key (oc_org_…). Workspace-scoped endpoints called with an organization key also need X-Workspace-Id.

Path Parameters

agentId
string
required

Response

The agent's grant set

An agent's full grant set — returned by grant reads and by every grant write.

agentId
string
mode
enum<string>

Always grants on current servers. The all value is wire compatibility with older self-hosted releases; never branch behavior on it.

Available options:
all,
grants
connections
object[]
secrets
object[]