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.
Authorization
apiKey Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.
In: header
Path Parameters
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 }}{ "_tag": "ApiNotFound", "error": "not_found", "message": "That item does not exist, or this key cannot see it.", "status": 404}{ "_tag": "ApiNotFound", "error": "not_found", "message": "That item does not exist, or this key cannot see it.", "status": 404}List the workspace audit log
Returns display-safe audit entries newest first by default, paged by `beforeVersion`. Set `sortDirection=asc` and page with `afterVersion` for oldest first. Results are windowed to the plan's history retention. Requires `audit_log:read` (owners and admins) and a plan with the audit log feature (Business or above); other plans receive 403 `entitlement_feature_locked`.
List workspace members
Returns every member of the workspace with their role and profile summary. Requires `members:read`, which every built-in role including viewer holds.