---
title: "Logout by removing current session"
method: POST
path: "/zot/auth/logout"
---

# Logout by removing current session

`POST /zot/auth/logout`

Logout by removing current session. For OIDC providers that advertise an
`end_session_endpoint` in their discovery metadata (OpenID Connect
RP-Initiated Logout 1.0), the response body contains an `endSessionUrl`
the client should navigate to in order to terminate the session at the IdP.

## Response `200`

OK

- ApiLogoutResponse
  - `endSessionUrl` string

## Other responses

- `500` — internal server error

---

[API](https://skmtc.net/project-zot/apis/open-container-initiative-distribution-specification.md) · [All operations](https://skmtc.net/project-zot/apis/open-container-initiative-distribution-specification/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/project-zot/open-container-initiative-distribution-specification/versions/62d5df709bf8/schema)
