API referenceAgents
Revoke an agent's access
Ends the grant and kills its refresh tokens; the agent's access token stops working within its 15 minute life. A grant of another workspace answers 404. The workspace's owners and admins are told once (a repeat is quiet), and the audit log records agent.revoked. Needs agent:manage.
Authorization
apiKey AuthorizationBearer <token>
Long-lived tenant API key, cd_live_… (production) or cd_test_… (staging, development), stored hashed. Keys created before the switch to cd_ start with sk_live_… / sk_test_… and are still accepted. Scoped to the owning application's tenant.
In: header
Path Parameters
id*string
Response Body
application/json
application/json
application/json
application/json
curl -X DELETE "https://example.com/agent/grants/string"Empty
{ "code": "string", "title": "string", "details": "string"}{ "code": "string", "title": "string", "details": "string"}{ "code": "string", "title": "string", "details": "string"}{ "code": "string", "title": "string", "details": "string"}