Skip to main content
DELETE
Detach a secret from an agent
Revokes one agent’s use of a secret while keeping the secret in place. To retire the secret everywhere, delete it from Secrets. See Agent access. Removes the agent’s grant for this secret. The gateway stops injecting it for the agent immediately.
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
secretId
string
required

Response

Grant removed