Skip to main content

Logout

POST/admin/logoutOpen in the API playground →
Info

Revoke the refresh token to prevent future token refreshes.

Request

refresh_tokenstringbodyrequired

Refresh token to revoke


Response

successboolean

Whether logout succeeded

messagestring

Status message


Examples

Request
cURL
curl -X POST "https://demo.api.vultlocal.com/api/v1/admin/logout" \
-H "Content-Type: application/json" \
-d '{
"refresh_token": "rt_abc123xyz..."
}'
Response
200 Success
{
"success": true,
"message": "Logged out successfully"
}
200 Already Revoked
{
"success": true,
"message": "Token already revoked"
}

Notes

Warning
  • Access tokens remain valid until expiration (typically 15 minutes)
  • For immediate session invalidation, implement token blacklisting
  • Already revoked tokens return success with different message

Errors

StatusCodeDescription
400INVALID_REQUESTInvalid request format
500INTERNAL_ERRORServer error