# List audit events

`GET /api/v1/workspaces/{workspaceId}/audit`

Who changed what and how (`ui`, `api`, `cli`, `mcp`), newest first: the whole workspace for the owner and admins, one project's with `projectId` for its admin.

Sign-in: a dashboard session only. API tokens and OAuth sign-ins get `403 token.not_allowed`.

Section: Audit log. Operation id in openapi.json: `list_audit_events`.

## Parameters

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `workspaceId` | path | yes | string (uuid) | The workspace's id. |
| `projectId` | query | no | string (uuid) | Only this project's events (project admin is enough); without it, the whole workspace (admin+). |
| `cursor` | query | no | string | The `nextCursor` of the previous page. Leave it out for the first page. |
| `limit` | query | no | integer | Items per page, 1–200; 50 by default. A larger value counts as 200. |

## Responses

Errors are `application/problem+json` (`Problem`); branch on `type`.

### 200

A page of events.

`application/json`: AuditPage

| Field | Type | Required | Description |
|---|---|---|---|
| `items` | array of AuditEventView | yes |  |
| `nextCursor` | string \| null | no |  |

### 400

Bad Request.

- `request.malformed`: the body or a parameter is not of the expected shape
- `request.invalid_cursor`: the cursor is not one this list gave
- `auth.credentials_conflict`: the request carries both a session cookie and a token

### 401

Unauthorized.

- `auth.unauthenticated`, `auth.session_expired`: no session, or it ended
- `token.invalid`: the token is malformed, unknown, revoked or expired, or its creator left the workspace

### 403

Forbidden.

- `auth.forbidden`: your role is too low for this
- `token.not_allowed`: this operation needs a signed-in session; tokens cannot call it

### 404

Not Found.

- `request.not_found`: it does not exist, or you cannot see it

### 422

Unprocessable Entity.

- `field.invalid`, `field.required`: a parameter breaks a rule; `errors` points at it

Schemas named above are listed with their fields in [the schema list](https://docs.monitorly.cloud/api/reference/schemas.md).
