> For the list of every page, fetch /llms.txt. The API contract is the OpenAPI file linked from the API reference.

# Audit log

The audit log is the record of changes made to your account through the API: who made each change, what changed, and when. Read it with `GET /v1/audit-logs` and an `admin` key.

Next step: list the newest entries, then filter by `type`, `project_id` or `actor_key_id`.

On the hosted beta since 2026-11-28. `GET /v1/audit-logs` answered 200 there that day, with an empty list. Nothing else on this page was run against the hosted beta: the behavior is read from the server's code and its tests, so no other output is shown.

## Read it

```bash
curl -sS "$MEADOW_BASE_URL/v1/audit-logs?limit=50" \
  -H "Authorization: Bearer $MEADOW_API_KEY"
```

Entries come newest first. The response has `data`, `has_more` and `next_cursor`, like the key list. Pass `next_cursor` as `cursor` for the next page.

| Query | Returns |
| --- | --- |
| `type` | Entries of one type, such as `api_key.updated`. |
| `project_id` | Entries about one project, its keys and its budget. |
| `actor_key_id` | Changes made with one key. |

## What an entry holds

| Field | Meaning |
| --- | --- |
| `type` | What happened. See the table below. |
| `effective_at` | When. |
| `actor` | `{"type": "api_key", "api_key": {"id": "key_..."}}` for a change made through the API. `{"type": "system"}` for one Meadow made by itself. |
| `project_id` | The project the change is about, or null for a change to the account. |
| `resource_id` | The ID of what changed: a key ID, a project ID, a provider name, a budget ID or a sandbox ID. |
| `request_id` | The `x-request-id` of the request that made the change. |
| `details.fields` | The names of the fields the request sent. |
| `details.values` | The new values of the fields that are safe to show. For a key that includes `allowed_models`, `allowed_providers` and `allowed_sandbox_providers`, with `null` for a removed list. |

| `type` | Change |
| --- | --- |
| `api_key.created`, `api_key.updated`, `api_key.deleted` | A key was created, changed or revoked. |
| `api_key.rotated` | A key's secret was replaced with `POST /v1/keys/{key_id}/rotate`. |
| `project.created`, `project.updated`, `project.deleted` | A project was created, changed or deleted. A webhook address change and a webhook secret rotation are `project.updated`. |
| `provider_key.updated`, `provider_key.deleted` | A provider credential was stored, replaced or deleted. |
| `budget.updated`, `budget.deleted` | A budget was set or removed. |
| `sandbox.stopped_at_limit` | Meadow deleted a running sandbox because a key with `limit_action` `stop_sandboxes` spent its `limit`. See [Spend limits](/call-models/spend-limits#sandboxes). |

## Things to know

- An entry never holds a key secret, a provider credential, a webhook secret, a webhook address or an email address. A field such as `credentials` or `webhook_url` is named in `details.fields` and has no value.
- Only changes that succeeded are recorded. Reads, rejected requests, model calls and sandbox calls are not. For those, see [Usage and cost](/call-models/usage-and-cost).
- The actor is an API key, because Meadow has no user accounts yet. Use one key per person or system if you need to tell them apart.
- Entries are kept 400 days. See [Security](/reference/security#retention).
- Revoking a key writes one entry for that key, not one for each key created from it.
- A new `type` can be added at any time. Ignore the ones you do not know.

## API reference

Operations on this page: [`listAuditLogs`](/reference/api-reference#listauditlogs).