/{app_slug}/v1/me/agent-grants/{grant_id}AuthDisconnect an agent
Revokes the connection at once: its refresh token stops working and introspection of its access tokens answers `{"active": false}`. Audited as `agent_access.grant.revoked`.
Path parameters
app_slug*stringThe app slug.
grant_id*stringThe connection id (`agr_…`).
Response · 204
Disconnected.
Example
Request
DELETE https://api.auth.productcraft.co/{app_slug}/v1/me/agent-grants/{grant_id}
Authorization: Bearer YOUR_TOKENimport { Auth } from "@productcraft/auth";
// Admin routes read PRODUCTCRAFT_API_KEY; consumer routes need no key
const auth = new Auth();
await auth.consumer("my-app").me.agentGrants.delete("agr_9xYk2LmQ0aBcDeFg");auth.consumer(…).me.agentGrants.delete(grantId, options?): void