Skip to content

Revoke an app you allowed

DELETE
/auth/account/consents/{id}
curl --request DELETE \
--url https://api.sloose.com/auth/account/consents/b3f1c8a2 \
--header 'Authorization: Bearer <token>'

Ends one of your own grants, whatever your role in its org: its tokens are revoked and the next MCP request with any of them is refused. The app can ask again, and you will be asked again. Your own grants only — an id from anybody else’s list is not found. Written in the org’s history beside an administrator’s revokes. Session only.

id
required

The consent

string
Example
b3f1c8a2

The consent

Revoked.

Media typeapplication/json

A write that carries nothing back.

object
ok
required
boolean
Example
{
"ok": true
}

No bearer, or one that is expired, revoked or no longer resolves to a member.

Media typeapplication/json

The error envelope every non-2xx answer uses.

object
error
required

Human-readable explanation.

string
code

Machine-readable reason. Absent on a few legacy 400s.

string
key
additional properties
Examplegenerated
{
"error": "example",
"code": "example"
}

An API token was used (code: SESSION_REQUIRED), or the session is a staff member’s view of an org (code: STAFF_VIEW).

Media typeapplication/json

The error envelope every non-2xx answer uses.

object
error
required

Human-readable explanation.

string
code

Machine-readable reason. Absent on a few legacy 400s.

string
key
additional properties
Examplegenerated
{
"error": "example",
"code": "example"
}

No such the consent, or it is not visible to this session.

Media typeapplication/json

The error envelope every non-2xx answer uses.

object
error
required

Human-readable explanation.

string
code

Machine-readable reason. Absent on a few legacy 400s.

string
key
additional properties
Examplegenerated
{
"error": "example",
"code": "example"
}

Report a problem with this page