Export one audit snapshot page
Changed onRequires View audit history (audit.view) and deployment audit visibility. For scripts, send an organization API key in x-api-key without a Bearer prefix; its owner must be a current member with that permission.
Exports retained, structured events only; not every cloud action is recorded. Omitted filters impose no restriction; supplied filters combine with AND.
Read X-Audit-Next-Cursor from the response headers, not the body. Pass it as cursor; stop when a successful response omits the header, even if the page is full.
Download audit history with the API · Audit export rules · How export snapshots and cursors work.
Request
- Base URLhttps://api.openworklabs.com
- Auth
- API key in header x-api-key
- or HTTP bearer
Query parameters
Maximum child events per page, excluding the CSV column header. Send decimal digits only, with no leading zero, sign, spaces or decimal point.
Omit for the first page. For later pages, URL-encode the entire opaque X-Audit-Next-Cursor response header value.
Inclusive lower bound on the operation's first-recorded time; unbounded when omitted. Use YYYY-MM-DD (UTC midnight) or YYYY-MM-DDTHH:MM:SS[.fraction] followed by Z or ±HH:MM, e.g. 2026-11-01T00:00:00+08:00. Seconds and a time zone are required for date-times; numeric offsets must include a colon. from must not be later than to.
Inclusive upper bound on the operation's first-recorded time; unbounded when omitted. Use YYYY-MM-DD (UTC midnight) or YYYY-MM-DDTHH:MM:SS[.fraction] followed by Z or ±HH:MM, e.g. 2026-11-01T00:00:00+08:00. Seconds and a time zone are required for date-times; numeric offsets must include a colon. from must not be later than to.
Initiating user ID, not a delegated event actor or membership ID.
Exact stable action of any child event within the snapshot. See GET /v1/audit/event-types for supported actions.
Current operation outcome; not an individual event outcome.
Stored operation origin.
Exact case-sensitive operation, child event, child request or stored child resource reference ID within the snapshot; OR across ID kinds, AND with other filters. Not free-text or legacy payload search.
Exact case-sensitive stored reference ID from any child within the snapshot. No live-resource lookup.
Type of the same stored reference matched by resourceId. Requires resourceId.
Attachment format.
Response
One attachment page of retained, structured child events from matching operations, ordered by ascending event ID. Content-Type is application/x-ndjson; charset=utf-8 for NDJSON or text/csv; charset=utf-8 for CSV.
Changes
- info
added the non-success response with the status
- info
- breaking
for the
queryrequest parametercursor, the minLength was increased from0to1 - breaking
added the pattern
^[^\u0000-\u001f\u007f]+$to thequeryrequest parameterresourceId
7 more changes in this revision
- breaking