get https://{application_vanity_domain}/api/v1/logout
Redirect RequiredYour application will need to redirect to this endpoint instead of making a direct API call.
Tenant Vanity Domain RequiredWhen calling this API you need to use the vanity domain of the tenant that the user is logging out of.
Logs out the user by extracting the session ID from the auth session cookie and deleting the corresponding session.
Auth session cookies are scoped to tenant vanity domains, so the request must use the correct tenant vanity domain to ensure the session is properly deleted.
The API response is an HTTP 302 redirect, where the redirect location is determined by the following rules in the order listed:
- Redirects to the
redirect_url
query parameter, if provided. - Redirects to the client's
loginUrl
, if a client ID is provided and the client has a configured login URL. - Otherwise, redirects to the application's
loginUrl
.