---
title: "Logout"
method: POST
path: "/auth/logout"
---

# Logout

`POST /auth/logout`

## Request

- Base URL: `https://api.twtapi.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.twtapi.com/auth/logout`
- Auth: none declared

退出登录：删除 Redis 中的会话并清掉 cookie。

返回：success(退出成功文案)。
副作用：写 Redis（删 session）。
注意：只失效当前这一个 session_id，用户在其他设备/浏览器的登录态不受影响。

## Query parameters

- `lang` string

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/twtapi/apis/twtapi-backend.md) · [All operations](https://skmtc.dev/twtapi/apis/twtapi-backend/llms.txt) · [OpenAPI document](https://skmtc.dev/twtapi/apis/twtapi-backend/revisions/5295976febaf?raw)
