OAuth2 token revocation endpoint
Revokes an access or refresh token. Returns {revoked: boolean} without disclosing whether the token previously existed.
Body
required
application/json
- Type: stringclient
_id requiredOAuth2 client ID
- Type: stringclient
_secret requiredOAuth2 client secret
- Type: stringtokenrequired
The token to revoke (access or refresh)
- Type: string enumtoken
_type _hint Optional token type hint
values- access
_token - refresh
_token
Responses
- application/json
- 400
Invalid request
- 401
Invalid client credentials
- application/json
- application/json
- application/json
Request Example for post/auth/oauth/revoke
curl https://test.boost.space/api/auth/oauth/revoke \
--request POST \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--data '{
"token": "",
"token_type_hint": "access_token",
"client_id": "",
"client_secret": ""
}'
{
"revoked": true
}