Revoke Token
Invalidate the current access token before it expires.
DELETE
/api/v1/auth/tokenDescription
Revokes the bearer token sent in the Authorization header. After revocation, the token cannot be used for further API requests.
Request
Headers
| Header | Value | Required |
|---|---|---|
| Authorization | Bearer <access_token> | Yes |
| Content-Type | application/json | Yes |
Response
Related Endpoints
Did this page help you?
Request
curl -X DELETE https://uat.unduit.com/api-exposed/api/v1/auth/token \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json"Success Response
{
"success": true,
"message": "Token revoked successfully."
}Error Responses
401 Unauthorized
{
"success": false,
"message": "Access denied: No token provided."
}401 Invalid Token
{
"success": false,
"message": "Access denied: token Not Valid."
}