> ## Documentation Index
> Fetch the complete documentation index at: https://docs.decimal.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Audit logs API

> Read who did what in your organization, to send to your SIEM or keep for compliance.

The Audit logs API reads the same record as **Settings → Audit logs**: every change made in the app, through the API, or by Decimal itself.

| Endpoint | Scope |
| - | - |
| [List audit logs](https://docs.decimal.app/api-reference/audit-logs/list-audit-logs.md) | `audit_logs:read` |
| [Get an audit log](https://docs.decimal.app/api-reference/audit-logs/get-an-audit-log.md) | `audit_logs:read` |

Audit logs are on the Enterprise plan. Without them, these endpoints return `403` with code `forbidden`, and the `audit_logs:read` scope isn't offered when you create a key.

## Audit logs

| Field | Meaning |
| - | - |
| `event` | What happened, as `resource.action`, like `ticket.deleted` or `automation.updated` |
| `service` | Where it happened: `app`, `api`, or `system` |
| `user` | Who did it, or `null` for system and API token actions |
| `metadata` | Details of the event. Its shape depends on the event |
| `created_at` | When it happened |

`GET /v0/audit_logs` returns events newest first. Filter with `service`, `event`, `created_after`, and `created_before`, and page with `limit` and `starting_after`.

```bash theme={null}
curl "https://api.getdecimal.ai/v0/audit_logs?event=ticket.deleted&created_after=2026-11-01T00:00:00Z" \
  -H "Authorization: Bearer sk-de-..."
```

To export continuously, keep the newest `created_at` you've seen and pass it as `created_after` on the next run.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.