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

# POST /auth/logout

`POST /auth/logout`

Invalidates current token

## Response `200`

Ok

- object
  - `message` string

## Other responses

- `401` — Not logged in

## Changes

- **2025-07-15** `4fc8206e1afe` — 1 warning, 2 info
  - removed the optional property `messages` from the response with the `200` status
  - added the non-success response with the status `401`
  - added the optional property `message` to the response with the `200` status
- **2024-04-14** `5acc2e0d80e9` — 1 warning, 2 info
  - removed the optional property `message` from the response with the `200` status
  - removed the non-success response with the status `401`
  - added the optional property `messages` to the response with the `200` status

[Change history](https://skmtc.dev/devsoc-unsw/apis/chaos-api/changes/auth/logout/post.md)

---

[API](https://skmtc.dev/devsoc-unsw/apis/chaos-api.md) · [All operations](https://skmtc.dev/devsoc-unsw/apis/chaos-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/devsoc-unsw/chaos-api/revisions/b169cdb125bd/schema)
