---
title: "Export the company audit journal as CSV"
method: GET
path: "/company/audit-log/export"
tags: ["Company"]
---

# Export the company audit journal as CSV

`GET /company/audit-log/export`

## Request

- Base URL: `https://api.atako.ai`
- URL: `https://api.atako.ai/company/audit-log/export`
- Auth: HTTP bearer

Company-admin only. Same filters as `GET /company/audit-log` (cursor/limit are ignored, sort is honoured), no pagination — hard-capped server-side; a capped export answers `X-Export-Truncated: true`. The export itself is journalled (`audit_log.exported`).

## Query parameters

- `cursor` string
- `limit` integer
- `sort` 'asc' | 'desc'
- `actorId` string, uuid
- `actorAgentId` string, uuid
- `action` string
- `status` 'ok' | 'denied' | 'error'
- `entityType` string
- `entityId` string, uuid
- `from` string, date-time
- `to` string, date-time
- `q` string
- `qActions` string

## Response `200`

CSV file (`text/csv`, `Content-Disposition: attachment`).

## Other responses

- `400`: Validation error, or an invalid cursor.
- `401`: Missing, malformed, or invalid bearer token / API key, or revoked session (SESSION_REVOKED).
- `403`: The caller does not have the required role/permission.
- `404`: No company found

---

[API](https://skmtc.dev/atako/apis/atako-api.md) · [All operations](https://skmtc.dev/atako/apis/atako-api/llms.txt) · [OpenAPI document](https://skmtc.dev/atako/apis/atako-api/revisions/aa555c56fbd7?raw)
