> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ariacompute.cn/llms.txt
> Use this file to discover all available pages before exploring further.

# POST /api/auth/logout — 吊销当前会话

> 吊销请求中 Bearer 令牌所绑定的会话。收到 204 响应后请在客户端丢弃该令牌。

吊销 `Authorization` 头中令牌所绑定的会话。使用同一令牌的后续请求将返回 `401`。成功响应后请在客户端丢弃该令牌。

**方法：** `POST` **路径：** `/api/auth/logout` **认证：** 会话 Bearer

## 请求

无请求体。

## 响应

`204 No Content`。

## 示例

```bash theme={null}
curl -X POST \
  -H "Authorization: Bearer eyJhbGciOi..." \
  https://ariacompute.cn/api/auth/logout
```

## 错误

| 状态    | 含义          |
| ----- | ----------- |
| `401` | 缺失或无效的会话令牌。 |
