Skip to navigation

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

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.

QueryReturns
typeEntries of one type, such as api_key.updated.
project_idEntries about one project, its keys and its budget.
actor_key_idChanges made with one key.

What an entry holds

FieldMeaning
typeWhat happened. See the table below.
effective_atWhen.
actor{"type": "api_key", "api_key": {"id": "key_..."}} for a change made through the API. {"type": "system"} for one Meadow made by itself.
project_idThe project the change is about, or null for a change to the account.
resource_idThe ID of what changed: a key ID, a project ID, a provider name, a budget ID or a sandbox ID.
request_idThe x-request-id of the request that made the change.
details.fieldsThe names of the fields the request sent.
details.valuesThe 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.
typeChange
api_key.created, api_key.updated, api_key.deletedA key was created, changed or revoked.
api_key.rotatedA key’s secret was replaced with POST /v1/keys/{key_id}/rotate.
project.created, project.updated, project.deletedA project was created, changed or deleted. A webhook address change and a webhook secret rotation are project.updated.
provider_key.updated, provider_key.deletedA provider credential was stored, replaced or deleted.
budget.updated, budget.deletedA budget was set or removed.
sandbox.stopped_at_limitMeadow deleted a running sandbox because a key with limit_action stop_sandboxes spent its limit. See Spend limits.

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.
  • 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.
  • 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.