Skip to Content
ReferenceAPI referenceAuth

Log out and end the browser session

POST
/api/v1/auth/logout

Ends the current session. After an OIDC login with OIDC_LOGOUT_IDP on, redirectTo holds the identity provider's sign-out URL, as long as the provider lists an end_session_endpoint. API keys get a 403 here; use a browser session.

Authorization

sessionCookie
cookiesession<token>

Session cookie authentication.

Response Body

Request fulfilled, document follows

application/json
  1. response

Where the browser goes after logging out.

redirectTo*|

The identity provider's sign-out URL. GeoMetrikks sets it when the session came from OIDC, OIDC_LOGOUT_IDP is on and the provider's discovery document lists an end_session_endpoint. Null means the login page.

Example Request
curl -X POST 'https://geometrikks.example.com/api/v1/auth/logout'
Example Response
{  "redirectTo": "string"}