Skip to content

Log out of the user account

Request

Logs out of the user account.

Security
CookieBlaizeSession or JwtQuery or JwtHeaderXBlaizeJwt or JwtHeaderXZephrJwt or JwtBearer or JwtCookie
Headers
cookiestring

The session cookie.

Example:`blaize_session=...` (string)
Bodyapplication/json
wherestring

An enum of describing which sessions/devices to log out of.

Options are JUST_HERE, THIS_DEVICE, OTHER_DEVICES, EVERYWHERE. These options are only valid when Single Sign-On is configured. When SSO is configured as autoLogin, then the default behaviour is THIS_DEVICE. When SSO is configured as optIn, then the default behaviour is JUST_HERE. JUST_HERE is not a valid option when SSO is configured as autoLogin.

Example:"EVERYWHERE"
{ "where": "EVERYWHERE" }

Responses

OK

Headers
Bodyapplication/json
messagestring
Example:"Session deleted"
Response
{ "message": "Session deleted" }