---
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.

---

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