Auth API reference

Auth API · Consumer-Agent-Access

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

Disconnect an end user's agent

Revokes the connection at once (refresh stops, introspection answers `{"active": false}`), whoever made it. Audited as `agent_access.grant.revoked` with reason `app` and the PAK as actor; record who asked for it in your own trail. Requires `auth.agent_access.grants.manage` on the app.

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/agent-access/grants/{grant_id}
Authorization: Bearer YOUR_TOKEN