Skip to main content
POST
/
authentication
/
logout
Logs out the authenticated user by invalidating their current session.
curl --request POST \
  --url https://api.example.com/authentication/logout \
  --header 'Content-Type: application/json' \
  --data '{
  "all": true
}'

Body

The logout request containing options for logout scope (current session or all sessions).

all
boolean

Response

User logged out successfully.