Skip to main content
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"
}
Revoke the refresh token to prevent future token refreshes.

Request

refresh_token
string
required
Refresh token to revoke

Response

success
boolean
Whether logout succeeded
message
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"
}

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

StatusCodeDescription
400INVALID_REQUESTInvalid request format
500INTERNAL_ERRORServer error

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Refresh token to revoke

refresh_token
string
required

Response

OK

The response is of type object.