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

# Logout

`POST /auth/logout`

Logout of the service and destroy the session token.

## Cookies

- `_me_sess` string, required

## Response `204`

Success

## Other responses

- `401` — 401 Unauthorised.
- `500` — 500 Unexpected Internal Server Error.

## Changes

- **2024-09-04** `251a51c1c932` — 3 warning
  - the optional response header `X-API-Commit` removed for the status `204`
  - the optional response header `X-API-Commit` removed for the status `401`
  - the optional response header `X-API-Commit` removed for the status `500`
- **2024-06-30** `860d419093ef` — 2 info
  - api tag `Authentication` added
  - api tag `auth` removed
- **2024-06-12** `b52e9ab05fcc` — 1 info
  - endpoint added
- **2023-11-26** `b173cabb315f` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/medama-io/apis/medama-analytics-api/changes/auth/logout/post.md)

---

[API](https://skmtc.dev/medama-io/apis/medama-analytics-api.md) · [All operations](https://skmtc.dev/medama-io/apis/medama-analytics-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/medama-io/medama-analytics-api/revisions/77bbbf562f15/schema)
