# 稽核

## audit_log_search

查工作區的稽核紀錄（新的在前）：誰、經哪個管道（網站、MCP、系統）、做了什麼。

給 Agent 的原文：

> Search the audit log of the workspace, newest first: who did what, through which channel (WEB, MCP, SYSTEM).

| 參數 | 型別 | 必填 | 說明 |
| --- | --- | --- | --- |
| `limit` | integer |  | default: 20 |
| `cursor` | string（可以是 null） |  |  |
| `from` | date（可以是 null） |  | Asia/Taipei date, inclusive |
| `to` | date（可以是 null） |  |  |
| `actor_ids` | string[]（可以是 null） |  | Account ids, token ids, or SYSTEM |
| `categories` | WORKSPACE \| ACCESS \| QUOTE \| BILLING \| PAYMENT \| REFUND \| EINVOICE \| MESSAGING \| APPROVAL \| CUSTOMER \| PRODUCT \| SUBSCRIPTION \| OTHER[]（可以是 null） |  |  |
| `target` | Target（可以是 null） |  |  |
| `target.type` | string | 必填 | BILL, ORDER, QUOTE, PAYMENT…; BILL also returns the records related to the bill |
| `target.id` | string | 必填 |  |

授權項目：`audit:read`

核可：不用
