Export the audit log as CSV
/workspaces/{workspace}/audit-events/exportDownloads the whole filtered audit log as CSV, newest first, streamed so long histories work.
Authentication
Send an API token as a bearer token. This endpoint needs a read token, made by an admin or owner. Create one in My account → API tokens; see scopes and roles.
Authorization: Bearer 42|bynh_pat_•••••••HeaderPath parameters
workspacestringRequiredYour workspace slug, e.g. dokan.
Query parameters
categoryenumPrefix filter. One of
auth,workspace,member,certificate,document,access_request.actionstringExact action (max 64).
Response
200 OKtext/csv; charset=UTF-8 (no BOM), filename bynh-audit-log-{slug}-YYYY-MM-DD.csv. Columns: time_utc, who, email, action, what_happened, ip_address, user_agent, event_id. who and what_happened follow the reader’s language. Formula-leading cells are escaped.
Rate limits
This endpoint counts toward your general limit of 120 requests a minute. When you go over, wait for the number of seconds in Retry-After.
Errors
Every error is JSON with a message. See Errors.