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

fetch('https://api.k0rdent.ai/v1/regions/global/auth/revoke', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "revoked": true
}

Authorizations

Authorization
string
header
required

Bearer token authentication using OAuth2/OIDC tokens

Body

application/json
token
string
required

The access token (JWT) to revoke.

Response

Token revocation accepted. Per RFC 7009, this status is returned regardless of whether the token was valid, already revoked, or unrecognized.

revoked
enum<boolean>

Always true on successful processing.

Available options:
true