---
title: Export Audit Log
protocol: rest
method: GET
endpoint: /v1/projects/{projectId}/audit-log/export
description: "Download a project's audit trail as CSV or JSON"
---

# Export Audit Log

Downloads up to 10,000 audit entries as a CSV or JSON file. The same filters as [List Audit Entries](/api-reference/audit-log/list) apply, so you can export just the entries you need for compliance reviews.

<Endpoint method="GET" path="/v1/projects/{projectId}/audit-log/export" />

## Path Parameters

<ParamField path="projectId" type="string" required>
  The project to export audit entries for. The caller must be a member of the organization that owns the project.
</ParamField>

## Query Parameters

<ParamField query="format" type="string" default="json">
  Export format. One of: `csv`, `json`.
</ParamField>

<ParamField query="actor" type="string">
  Filter by actor email (case-insensitive substring match).
</ParamField>

<ParamField query="resource" type="string">
  Filter by resource type. One of: `settings`, `build`, `domain`, `api_key`, `webhook`, `audience`.
</ParamField>

## Response

The response body is the file itself, served with a `Content-Disposition: attachment` header.

CSV exports use the columns:

```
timestamp,action,actor_name,actor_email,resource_type,resource_id,resource_name
```

JSON exports contain an array of [audit entry objects](/api-reference/audit-log/list).

## Example Request

```bash
curl -o audit-log.csv \
  "https://api.syntext.dev/v1/projects/prj_abc123/audit-log/export?format=csv&resource=domain" \
  -H "Authorization: Bearer $SYNTEXT_TOKEN"
```
