# Audit log

Source: https://tiltas.openpanel.sh/docs/people/audit-log

> A record of every change in your Network, with who made it and from where, and how to export it.

The audit log records every change made in a Network: who made it, what changed, on which object, when, and from which
IP address. Owners and Admins read it in the console under **Enterprise** → **Audit log**, newest first.

## What is recorded

| Area | Events |
|---|---|
| The Account | `account.created`, `account.updated` (name and settings) |
| People | `invite.created`, `invite.revoked`, `member.joined`, `member.role_changed`, `member.removed` |
| Devices | `device.added`, `device.approved`, `device.updated`, `device.removed`, `device.signed_out` |
| Join keys | `join_key.created`, `join_key.revoked` |
| Services | `service.created`, `service.updated`, `service.deleted` |
| Access | `group.*`, `access_rule.*`, `ssh_rule.*` (created, updated, deleted) |
| Billing | `checkout.started`, `subscription.changed`, `subscription.canceled` |
| Enterprise | `access_token.created`, `access_token.revoked`, `sso.updated`, `sso.deleted` |

The actor of an event is one of:

- **a Member**, shown by their email address;
- **an Access token**, for changes made through the API or the MCP server;
- **a partner**, for changes a partner such as OpenPanel made in a Network it created.

Reading something is not recorded; only changes are. Secrets never appear in the log.

## Export it as CSV

Under **Enterprise** → **Audit log**, choose **Export CSV**. The file has one row per event, newest first, with the
columns `at`, `action`, `actor`, `target`, `ip` and `details`. `at` is in UTC; `actor`, `target` and `details` are JSON.
It holds up to the 10,000 most recent events.

## By API

```bash
curl "https://tiltas.openpanel.sh/api/v1/accounts/acc_8f2k1/audit-events?limit=200" \
  -H "Authorization: Bearer $TILTAS_TOKEN"
```

The answer has `data` and `next_cursor`: pass `?cursor=` with it for the next page, until it is `null`. Add
`?format=csv` for the CSV file. See [List audit events](/docs/api/enterprise/listAuditEvents) and
[Lists and pagination](/docs/api#lists-and-pagination).
