Skip to content

End the current session

POST
/auth/logout

Ends the session in the user cookie sent with this request and clears the cookie. If the session can’t be ended, the server logs the error and clears the cookie anyway.

You get 204 every time, even if you weren’t signed in. The account’s other sessions stay signed in; end them with DELETE /account/sessions/{id}. An API token isn’t affected either: revoke it with DELETE /auth/tokens/{id}.

The user cookie is cleared.