curl -X POST "https://demo.api.vultlocal.com/api/v1/admin/logout" \
-H "Content-Type: application/json" \
-d '{
"refresh_token": "rt_abc123xyz..."
}'
{
"success": true,
"message": "Logged out successfully"
}
{
"success": true,
"message": "Token already revoked"
}
Admin
Logout
Logout and revoke refresh token
POST
/
admin
/
logout
curl -X POST "https://demo.api.vultlocal.com/api/v1/admin/logout" \
-H "Content-Type: application/json" \
-d '{
"refresh_token": "rt_abc123xyz..."
}'
{
"success": true,
"message": "Logged out successfully"
}
{
"success": true,
"message": "Token already revoked"
}
Revoke the refresh token to prevent future token refreshes.
Request
string
required
Refresh token to revoke
Response
boolean
Whether logout succeeded
string
Status message
Examples
curl -X POST "https://demo.api.vultlocal.com/api/v1/admin/logout" \
-H "Content-Type: application/json" \
-d '{
"refresh_token": "rt_abc123xyz..."
}'
{
"success": true,
"message": "Logged out successfully"
}
{
"success": true,
"message": "Token already revoked"
}
Notes
- 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 |
⌘I