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

# POST /api/user/logout

`POST /api/user/logout`

## Request

- The document declares no server URL.
- Auth: one of:
  - API key in header `Authorization`
  - API key in cookie `sessionid`

## Response `200`

- Logout: Representation for the logout response: a short human-readable message.
  - `detail` string, required

## Other responses

- `400`
- `401`
- `403`
- `404`
- `405`
- `406`
- `415`
- `500`

## Changes

- **2026-08-18** `baf6b00d7559`: 1 breaking, 2 info
  - added `#/components/schemas/UserLogoutCreateValidationError` to the response body `oneOf` list for the response status `400`
  - added `validation_error` mapping keys to the response discriminator for the response status `400`
  - added the media type `application/json` for the response with the status `200`
- **2026-08-15** `9164f6763019`: 1 info
  - added the non-success response with the status `404`
- **2025-08-17** `14b27b584fd2`: 7 info
  - added the non-success response with the status `400`
  - added the non-success response with the status `401`
  - added the non-success response with the status `403`
  - added the non-success response with the status `405`
  - …3 more

[Operation history](https://skmtc.dev/frikanalen/apis/frikanalen-django-api/changes/api/user/logout/post.md)

---

[API](https://skmtc.dev/frikanalen/apis/frikanalen-django-api.md) - [All operations](https://skmtc.dev/frikanalen/apis/frikanalen-django-api/llms.txt) - [OpenAPI document](https://skmtc.dev/frikanalen/apis/frikanalen-django-api/revisions/ebd4175e41fe?raw)
