Skip to main content
GET
Get a connection's grants
Lists the agents attached to a connection. Use it before you rotate or disconnect an account to check who depends on it. See Agent access. Which agents hold a grant for this connection, with each agent’s access level — the reverse orientation of GET /agents/{agentId}/grants.
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

connectionId
string
required

Response

Per-agent grants for the connection

Which agents hold a grant for one connection (the reverse orientation of AgentGrants).

connectionId
string
agents
object[]