# List audit events (https://notert.io/docs/api/reference/list-audit-events)

`GET /api/v1/audit-events`

A page of the workspace's audit log, newest first: what was done in the workspace, who did it and how, as the Audit log page in the app and its CSV export list it, kept a year. Only owners and admins read the log, so the token's holder must be one (FORBIDDEN otherwise), and the workspace's plan must include it (NOT_ON_PLAN otherwise). Notert's support team is named only as support, never by name.

Access: A token with audit:read.

## Query parameters

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `area` | string | No | Only events in one area: workspace (the workspace and its plan), team (who is on it and answers chats), access (who and what may reach it), developers (API tokens and webhooks), connections (the services and addresses it connects), otto (Otto and what it reads), publishing (what it makes public), look (how it looks and is set up), moderation (what the team holds back and who it bans) or data (what leaves it, comes in or is deleted for good). Every area when left out. One of: `workspace`, `team`, `access`, `developers`, `connections`, `otto`, `publishing`, `look`, `moderation`, `data`. |
| `period` | string | No | Only events from the last day, week, month (30 days) or quarter (90 days). The whole log, kept a year, when left out. One of: `day`, `week`, `month`, `quarter`. |
| `by` | string | No | Only events one teammate did, by their id (m_...), or those Notert did, by itself or as support (notert), or Stripe did (stripe). |
| `via` | string | No | Only events a teammate did in one way: in the app (person), through an API token (api_token) or through an AI client (ai_client). One of: `person`, `api_token`, `ai_client`. |
| `limit` | integer | No | How many events the page holds. 1 to 100. Default 50. |
| `cursor` | string | No | The nextCursor of the page before. At most 4096 characters. |

## Response 200

| Field | Type | Description |
| --- | --- | --- |
| `items` | object[] | The page's events, newest first. |
| `items.id` | string | The event's id, which stays the same. |
| `items.action` | string | What was done, as a stable id to branch on, such as api_token.created or member.role_changed. New actions are added over time. |
| `items.description` | string | What was done, in the audit log's own words, as the app shows it. |
| `items.area` | string | The area the event falls in: workspace (the workspace and its plan), team (who is on it and answers chats), access (who and what may reach it), developers (API tokens and webhooks), connections (the services and addresses it connects), otto (Otto and what it reads), publishing (what it makes public), look (how it looks and is set up), moderation (what the team holds back and who it bans) or data (what leaves it, comes in or is deleted for good). One of: `workspace`, `team`, `access`, `developers`, `connections`, `otto`, `publishing`, `look`, `moderation`, `data`. |
| `items.actorId` | string or null | The teammate who did it, by their m_ id, which the by filter takes. It stays after they leave the team. Null where no teammate did it (Notert, its support team or Stripe) or once their account is deleted. |
| `items.actorName` | string or null | The name of the teammate who did it. Null where actorId is, and for one who hasn't set a name. Their email address is never answered. |
| `items.actorKind` | string | How it was done: person (a teammate in the app), api_token (a teammate's API token), ai_client (a teammate's AI client), support (Notert's support team, never named), cli (Notert's own tools), system (Notert itself) or stripe (a plan Stripe moved). One of: `person`, `api_token`, `ai_client`, `support`, `cli`, `system`, `stripe`. |
| `items.targetType` | string or null | The kind of record it was done to, such as member, api_token, webhook or request. Null for an event about the workspace as a whole. One of: `workspace`, `member`, `invitation`, `api_token`, `webhook`, `board`, `widget_site`, `feedback_sender`, `request`, `changelog_entry`, `changelog_tag`, `help_article`, `knowledge_source`, `data_export`, `person`, `account`, `report`, `queue`, `conversation`, `comment`, `tag`, `saved_reply`, `help_collection`, `status_service`, `import`, `moderation_case`. |
| `items.targetId` | string or null | The id of the record it was done to, null with targetType: a teammate's m_ id, as GET /teammates names them, for a member or an account, null for a member no longer on the team. Gone from the event once that person's data is erased. |
| `items.createdAt` | date-time | When it was done. |
| `nextCursor` | string or null | Where the next page starts, to send as cursor. Null on the last page. |

## Errors

| Status | Code | Message |
| --- | --- | --- |
| 400 | `BAD_REQUEST` | Input validation failed. |
| 401 | `UNAUTHORIZED` | Send a valid API token as a Bearer token. |
| 403 | `FORBIDDEN` | The teammate who holds this API token's secret can't read the audit log. Only an owner or admin can: one of them should roll it in the workspace's settings. |
| 403 | `HOLDER_NOT_ALLOWED` | The teammate who holds this API token's secret can't do this in the workspace now. A teammate who can should roll it in the workspace's settings. |
| 403 | `INSUFFICIENT_SCOPE` | This API token can't read the audit log. Create one that may in the workspace's settings. |
| 403 | `NETWORK_NOT_ALLOWED` | This API token works only from the networks it was made for. Call from one of them, or create a token for this one in the workspace's settings. |
| 403 | `NOT_ON_PLAN` | The workspace's plan doesn't include the audit log. An owner can upgrade it. |
| 429 | `TOO_MANY_REQUESTS` | Too Many Requests. Its data holds `retryAfter`. |

## Example request

```sh
curl "https://app.notert.io/api/v1/audit-events?period=week" \
  -H "Authorization: Bearer $NOTERT_API_TOKEN"
```

## Example response 200

```json
{
  "items": [
    {
      "id": "6d1f3b8a-2c4e-4a7d-9f1b-3e5c7a9d1b2f",
      "action": "member.role_changed",
      "description": "Changed a member's role",
      "area": "team",
      "actorId": "m_5k2m9p4q7r1t",
      "actorName": "Hannah Lee",
      "actorKind": "person",
      "targetType": "member",
      "targetId": "9a3e5c7b-1d2f-4b6a-8c0e-2f4a6b8d0c1e",
      "createdAt": "2026-11-20T09:41:07.512Z"
    }
  ],
  "nextCursor": "WyIyMDI2LTExLTIwIDA5OjQxOjA3LjUxMjAzNCIsIjZkMWYzYjhhLTJjNGUtNGE3ZC05ZjFiLTNlNWM3YTlkMWIyZiJd"
}
```
