Revoke
Token revocation endpoint
Endpoint POST /api/v1/revoke
Request Body
Request Body is expected to be send as JSON-Body
Parameter | Type | Required | Description |
---|---|---|---|
organization_id | string | true | the organization the operation should be performed on |
token_type | string | true | refresh_token or access_token |
token | string | true | the token to be revoked |
Responses
Success Response 200
{
"success": true,
"data": "Token revoked"
}
Error Response 400
{
"success": false,
"error_code": 400,
"error_msg": "Bad Request" // Detailed Error Message
}
Error Response 500
{
"success": false,
"error_code": 500,
"error_msg": "Internal Server Error" // Detailed Error Message
}