Skip to main content
DELETE
/
v1
/
regions
/
global
/
auth
/
tokens
Revoke token
const options = {
  method: 'DELETE',
  headers: {'Content-Type': 'application/json'},
  body: JSON.stringify({token: '<string>', tokenTypeHint: 'access_token'})
};

fetch('https://api.example.com/v1/regions/global/auth/tokens', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "success": true,
  "data": {
    "revoked": true
  }
}

Body

application/json
token
string
required

Token to revoke

tokenTypeHint
enum<string>

Type of token being revoked

Available options:
access_token,
refresh_token

Response

200 - application/json

Token revoked

success
enum<boolean>
Available options:
true
data
object