Revoke access token
POST
/api/v2/oauth/revokeBearer tokenRevoke an active access token by its JWT ID (jti)
Request body
- token_jtistringrequired
JWT ID (jti) of the token to revoke
Responses
200Token revoked successfully
Response follows the unified success / data / meta / error envelope.
404Token not found
Response follows the unified success / data / meta / error envelope.
curl -X POST https://api-staging.coinbax.com/api/v2/oauth/revoke \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"token_jti": "550e8400-e29b-41d4-a716-446655440000"
}'const response = await fetch('https://api-staging.coinbax.com/api/v2/oauth/revoke', {
method: 'POST',
headers: {
'Authorization': `Bearer ${process.env.ACCESS_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"token_jti": "550e8400-e29b-41d4-a716-446655440000"
}),
});
const result = await response.json();