Skip to content

Revoke an OAuth client connection

DELETE
/connections/oauth/{client_id}
curl --request DELETE \
--url https://api.engram.page/connections/oauth/example \
--header 'Authorization: Bearer <token>'

Revokes the refresh tokens for an OAuth client family (e.g. an MCP client) so it can no longer mint access tokens. Pass family_id to revoke ONE grant — a client the user authorized twice has two, and each is its own row in GET /connections. Omit it to disconnect the client entirely, which is what frees a connection-cap slot. vault_id is the older, coarser narrowing and is ignored when family_id is given. Session-auth only.

client_id
required
string

OAuth client id

family_id
string

Revoke only this grant lineage

vault_id
string

Scope revoke to one vault

Revoked (empty body)

No such connection

Media typeapplication/json
MessageError
object
error
required
string
Example
{
"error": "not found"
}