Skip to main content

Revoke

Token revocation endpoint

Endpoint POST /api/v1/revoke

Request Body

Request Body is expected to be send as JSON-Body

ParameterTypeRequiredDescription
organization_idstringtruethe organization the operation should be performed on
token_typestringtruerefresh_token or access_token
tokenstringtruethe 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
}