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

# Export your organization audit log

> Download who did what in your organization, and whether it was allowed, as CSV or JSON Lines, filtered by date range, actor, action or category.

Your audit log records every action taken in your organization: who did it, what it was done to, and whether it succeeded, failed or was refused. Download it for a security review or for your own records from **Settings → Audit log**, or with [`GET /audit-log/export`](https://docs.mithunai.com/api-reference/audit-log/export-audit-log).

Only owners and admins can export it. An export holds only your organization's events, and every export is itself recorded in the log, with the range and filters you chose.

## Choose the events

| Filter | What it selects |
| - | - |
| **From** and **To** | A date range. Empty means the last 30 days; **To** includes the whole of that day. At most 366 days. |
| **Actor** | One account id, or one API key id. |
| **Action** | One exact action, such as `assistant.update`. |
| **Category** | Every action on one kind of thing, such as `assistant`. |

## The file

Choose **Download CSV** or **Download JSON Lines**. Events are oldest first, one per row or line, with these fields: `event_id`, `occurred_at` (UTC), `organization_id`, `action`, `outcome` (`success`, `failure` or `denied`), `actor_type`, `actor_is_human`, `actor_user_id`, `actor_subject`, `resource_type`, `resource_id`, `request_id`, `correlation_id` and `metadata`.

In the CSV, `metadata` is one JSON-encoded cell, and a cell that would start a spreadsheet formula begins with `'` so a spreadsheet shows it as text. JSON Lines keeps every value as it was recorded.

> [!NOTE]
>
> One export holds at most 100,000 events. If a range may hold more, export it in shorter ranges.


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