Revoke an app you allowed
const url = 'https://api.sloose.com/auth/account/consents/b3f1c8a2';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The consent
Example
b3f1c8a2The consent
Responses
Section titled “Responses”Revoked.
A write that carries nothing back.
object
Example
{ "ok": true}No bearer, or one that is expired, revoked or no longer resolves to a member.
The error envelope every non-2xx answer uses.
object
Human-readable explanation.
Machine-readable reason. Absent on a few legacy 400s.
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).
The error envelope every non-2xx answer uses.
object
Human-readable explanation.
Machine-readable reason. Absent on a few legacy 400s.
Examplegenerated
{ "error": "example", "code": "example"}No such the consent, or it is not visible to this session.
The error envelope every non-2xx answer uses.
object
Human-readable explanation.
Machine-readable reason. Absent on a few legacy 400s.
Examplegenerated
{ "error": "example", "code": "example"}