Skip to main content
Revoke the current access token and optionally the refresh token. Use this endpoint to log out a user or invalidate tokens for security purposes. After revoking, the tokens will no longer be valid for API access.
curl -X POST "https://api.chanl.ai/api/v1/auth/revoke" \
  -H "Authorization: Bearer <access_token>" \
  -H "Content-Type: application/json" \
  -d '{
    "revoke_refresh_token": true
  }'
{
  "success": true,
  "data": {
    "message": "Tokens revoked successfully",
    "revoked": {
      "access_token": true,
      "refresh_token": true
    }
  }
}