End the current Admin UI session.
POST
/api/admin/logout
Code sample: Shell / cURL
curl --request POST \ --url https://auth.example.com/api/admin/logout \ --header 'Authorization: Bearer <token>'End the Admin UI session after Origin or Referer validation and clear the admin session cookie.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Header Parameters
Section titled “Header Parameters ” X-Tenant-Id
string
Tenant selector for multi-tenant admin requests.
Idempotency-Key
string
Idempotency key for state-changing operations that support replay protection.
Responses
Section titled “ Responses ”Admin logout response.
Media type application/json
object
success
required
boolean
message
required
string
key
additional properties
Example
{ "success": true, "message": "Logged out successfully"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}