SnozeDevelopers
API referenceWorkspaces

Export the workspace audit log as CSV

Runs one bounded read (at most 5,000 rows) over the same filters as the list endpoint and returns the CSV inline with `truncated` set when more rows matched. Every export is itself recorded in the ledger as `audit_log.exported` with its filter scope. Requires `audit_log:read` and the audit log plan feature; send an `Idempotency-Key` to make retries safe.

POST
/v1/workspaces/{workspaceId}/audit-log/export
AuthorizationBearer <token>

Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.

In: header

Path Parameters

workspaceId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/v1/workspaces/string/audit-log/export" \  -H "Content-Type: application/json" \  -d '{}'
{  "data": {    "fileName": "string",    "csv": "string",    "rowCount": 0,    "truncated": true  }}