Skip to navigation

Export audit log events as CSV

Export audit log events for a workspace or organization as a CSV file. Exactly one of workspaceId or organizationId must be provided.

Supports the same filtering options as the query endpoints:

  • Date range (Unix timestamps)
  • Multiple actions
  • Multiple actor IDs
  • Target ID

Export limits:

  • Maximum 10,000 events per export
  • If more events match the filters, the export will be truncated
  • Truncated exports include “_TRUNCATED” in the filename

Example requests:

  • Export all events for an organization: {“organizationId”: “12345678-1234-1234-1234-123456789abc”}
  • Export filtered events: {“organizationId”: “12345678-1234-1234-1234-123456789abc”, “startDate”: 1704067200, “endDate”: 1735689599, “actions”: [“billing.credits.consumed”, “video.created”]}
  • Export by workspace with filters: {“workspaceId”: “12345678-1234-1234-1234-123456789abc”, “actorIds”: [“user-123”, “user-456”]}

This endpoint is rate-limited and usage is tracked against your API quota.

Authentication

Authorizationstring
API Key authentication via header

Request

This endpoint expects an object.
workspaceIdstring or nullOptionalformat: "uuid"
organizationIdstring or nullOptionalformat: "uuid"
startDateinteger or nullOptional>=0
endDateinteger or nullOptional>=0
actionslist of strings or nullOptional
actorIdslist of strings or nullOptional
targetIdstring or nullOptional

Response headers

Content-DispositionstringOptional
Attachment filename

Response

CSV file containing audit log events

Errors

400
Bad Request Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error
500
Internal Server Error