---
title: "Logout"
method: POST
path: "/user/logout"
tags: ["auth"]
---

# Logout

`POST /user/logout`

Destroys the current session and clears the refresh token cookie. For OpenID Connect sessions the response includes an `oidc_logout_url` the client should redirect to so the provider session is ended too.

## Response `200`

Successfully logged out.

- V1LogoutResponse
  - `message` string
  - `oidc_logout_url` string — RP-Initiated Logout URL the frontend redirects to. Empty for non-OIDC sessions.

## Changes

- **2026-02-25** `178e954cbae0` — 1 info
  - endpoint added
- **2025-07-28** `d7c1f946dc48` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/go-vikunja/apis/vikunja-api/changes/user/logout/post.md)

---

[API](https://skmtc.dev/go-vikunja/apis/vikunja-api.md) · [All operations](https://skmtc.dev/go-vikunja/apis/vikunja-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/go-vikunja/vikunja-api/revisions/120501835be2/schema)
