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
| Status | Code | Description |
|---|---|---|
| 400 | INVALID_REQUEST | Invalid request format |
| 500 | INTERNAL_ERROR | Server error |