/Docs
Search docs or ask a question⌘K
DocsAgent
Changelog
API Reference Export Audit Log

Export Audit Log

Download a project's audit trail as CSV or JSON

GET/v1/projects/{projectId}/audit-log/exportTry it
Session token

Downloads up to 10,000 audit entries as a CSV or JSON file. The same filters as List Audit Entries apply, so you can export just the entries you need for compliance reviews.

Note

Pro plan or higher. Free returns 402 plan_required with feature: audit_log, and Starter returns it with feature: audit_export (requiredTier: pro). Exports cover the same window as the list: the last 365 days on Pro, everything on Enterprise. See Plan availability.

Path Parameters

NameDescription
projectId:stringpathRequired
The project to export audit entries for. The caller must be a member of the organization that owns the project.

Query Parameters

NameDescription
format:stringquery
Export format. One of: csv, json.
Default"json"
actor:stringquery
Filter by actor email (case-insensitive substring match). Pro or higher.
resource:stringquery
Filter by resource type, e.g. settings, build, domain, api_key, webhook, audience, page, approval_gate, glossary, project, content, asset, change, org_theme.

Response

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

CSV exports use the columns:

ip_address is the last column and is empty when the entry has no recorded IP (actions taken by background jobs, and entries recorded before IP capture was added).

JSON exports contain an array of audit entry objects, each with ipAddress (string | null).

Was this page helpful? Yes No
Request
bashJavaScriptPythonGoRubyPHPJavaC#bash
curl -o audit-log.csv \
"https://api.syntext.dev/v1/projects/3f2a9c1e-8b4d-4e7a-9c21-5d6e7f8a9b0c/audit-log/export?format=csv&resource=domain" \
-H "Authorization: Bearer $SYNTEXT_TOKEN"
Responseapplication/json
text
timestamp,action,actor_name,actor_email,resource_type,resource_id,resource_name,ip_address
Product
Resources
Company
© 2026 SyntextBuilt with Syntext