Logout


↪️

Redirect Required

Your application will need to redirect to this endpoint instead of making a direct API call.

🏢

Tenant Vanity Domain Required

When 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:

  1. Redirects to the redirect_url query parameter, if provided.
  2. Redirects to the client's loginUrl, if a client ID is provided and the client has a configured login URL.
  3. Otherwise, redirects to the application's loginUrl.
Language
URL
Click Try It! to start a request and see the response here!