Auth API reference

Auth API · Consumer-Agent-Access

delete/{app_slug}/v1/me/agent-grants/{grant_id}Auth

Disconnect 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*string

The app slug.

grant_id*string

The 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_TOKEN