---
title: "End Session"
method: GET
path: "/oauth2/logout"
tags: ["oidc"]
---

# End Session

`GET /oauth2/logout`

## Request

- Base URL: `https://pozeidon.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://pozeidon.ai/oauth2/logout`
- Auth: none declared

RP-initiated logout (OIDC). Clears the pozeidon SSO session cookie so the
next /oauth2/authorize prompts a real login (instead of silently re-issuing
a code). Redirects to `post_logout_redirect_uri` ONLY when it shares an
origin with the calling client's registered redirect_uris — else falls back
to pozeidon's own login. The cookie is cleared regardless of the target.

## Query parameters

- `client_id` string, nullable
- `post_logout_redirect_uri` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/pozeidon/apis/pozeidon-demo.md) · [All operations](https://skmtc.dev/pozeidon/apis/pozeidon-demo/llms.txt) · [OpenAPI document](https://skmtc.dev/pozeidon/apis/pozeidon-demo/revisions/de288dc26752?raw)
