POST
/v1/user/logoutInvalidate the current session
Invalidates the authenticated user's current session. Logout is a no-op when you authenticate with an API key; send the optional Authorization header to identify the session to invalidate.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
Authorizationstringoptional
Authorization header used to authenticate the session to invalidate. Logout is a no-op when you authenticate with an API key.
204Returns no response body after the session is invalidated.
401Returned when the request is unauthorized.
Error handling
A 401 is returned when the request is unauthorized. Send a valid session credential in the Authorization header; requests authenticated with an API key do not invalidate a session.