---
title: "Get Call Logs"
method: GET
path: "/admin/logs"
---

# Get Call Logs

`GET /admin/logs`

## 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/admin/logs`
- Auth: none declared

全局调用日志（分页），可按 user_id 过滤。

注意 user_id 用 `is not None` 判断而非真值判断：这样"未传参（不过滤）"和
"传了 0"能区分开，避免将来引入合法 id 为 0 的场景时静默失效。

性能取舍：查询与计数分成两条 SQL；大表上 count(*) 成本不低，但后台需要
真实总数。列表按 id 倒序，走主键即可，无需额外索引。

脱敏：request_params 走 _public_params，密钥字段不会出现在响应里。

## Query parameters

- `user_id` integer, nullable
- `page` integer
- `size` integer

## 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)
