Syntext DOCS
Docs Agent Get Started
API Export Audit Log

Export Audit Log

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.

GET/v1/projects/{projectId}/audit-log/export

Path Parameters

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

Query Parameters

Export format. One of: csv, json.

Filter by actor email (case-insensitive substring match).

Filter by resource type. One of: settings, build, domain, api_key, webhook, audience.

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.

Example Request

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"
Was this page helpful?
Assistant
Responses are generated using AI and may contain mistakes.

Ask me anything about the documentation.

ESC