# Audit log

> Read the mutating requests made against the tenant.

URL: https://docs.workwae.com/reference/audit-log

Guides: [Audit log](/guides/audit-log).

| Method | Path | Operation | Scope |
| --- | --- | --- | --- |
| `GET` | `/v1/audit-log` | [Read the audit log](#read-the-audit-log) | `admin` |

## Read the audit log

`GET /v1/audit-log`

TypeScript SDK method: `workwae.auditLog.list()`

Every mutating request on /v1 and from the console, newest first. Needs the admin scope. action matches exactly, or as a prefix when it ends with a dot (accounts.). outcome success is a 2xx status.

Required scope: `admin`.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `limit` | query | integer | no | 1 to 200. Default `50`. |
| `cursor` | query | string | no | 1 to 512 characters. Example `"eyJ0eG5pZCI6IjQyIiwiaWQiOjEwMDF9"`. |
| `actorType` | query | "user" \| "apiKey" \| "accountToken" \| "connectSession" \| "scimCredential" | no |  |
| `actorId` | query | string (uuid) | no | Example `"99360c09-c8cd-4b28-bd6c-76388e7f7ff8"`. |
| `action` | query | string | no | 1 to 200 characters. |
| `accountId` | query | string (uuid) | no | Example `"6f1c2a4e-8b3d-4e5f-9a7b-1c2d3e4f5a6b"`. |
| `outcome` | query | "success" \| "failure" | no |  |
| `from` | query | string (date-time) | no | Example `"2026-05-04T09:30:00.000Z"`. |
| `to` | query | string (date-time) | no | Example `"2026-05-04T09:30:00.000Z"`. |

### Responses

- **200** OK (application/json, object)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `items` | object[] | yes |  |
| `items[].id` | string (uuid) | yes | Example `"c4e6a8b0-1d3f-4a5c-8e7b-9d1f3a5c7e9b"`. |
| `items[].createdAt` | string (date-time) | yes | Example `"2026-05-04T09:30:00.000Z"`. |
| `items[].actor` | object | yes |  |
| `items[].actor.type` | "user" \| "apiKey" \| "accountToken" \| "connectSession" \| "scimCredential" | yes |  |
| `items[].actor.id` | string (uuid) | yes | Example `"c4e6a8b0-1d3f-4a5c-8e7b-9d1f3a5c7e9b"`. |
| `items[].actor.label` | string \| null | yes |  |
| `items[].action` | string | yes |  |
| `items[].surface` | "v1" \| "rpc" \| "mcp" \| "auth" \| "smtp" | yes |  |
| `items[].targets` | object | yes |  |
| `items[].ip` | string \| null | yes |  |
| `items[].userAgent` | string \| null | yes |  |
| `items[].status` | integer | yes |  |
| `items[].errorReason` | string \| null | yes |  |
| `items[].requestId` | string \| null | yes |  |
| `nextCursor` | string \| null | yes | Example `"eyJ0eG5pZCI6IjQyIiwiaWQiOjEwMDF9"`. |

- **Errors**, by status and `code` (see [Errors](/guides/errors)):
  - 400: `invalid_input`, `invalid_idempotency_key`, `invalid_cursor`, `invalid_range`
  - 401: `unauthenticated`, `api_key_expired`
  - 403: `missing_scope`, `role_forbidden`, `account_token_forbidden`, `account_scope_forbidden`, `mcp_only_key`
  - 409: `idempotency_key_in_progress`
  - 413: `payload_too_large`
  - 422: `idempotency_key_reused`
  - 429: `rate_limited`, `too_many_requests`
  - 500: `internal_error`
  - 503: `overloaded`
