List Audit Events
Retrieves your organization’s audit events oldest-first with cursor pagination. Designed for incremental ingestion: pass since (or the previous next_cursor) on each run to fetch only new events. Authenticate with a CodeAnt API token (requires the settings_organization: read permission when token scoping is configured). Every call to this endpoint is itself recorded in the audit log as audit_log.api_read.
Authorizations
CodeAnt API token (cdt_...), created on the Settings → API Tokens page. Pass via Authorization: Bearer <token> header.
Body
Git platform of the organization
github, gitlab, bitbucket, azure_devops Organization / workspace slug
Self-hosted instance URL (also gitlab_base_url / bitbucket_base_url / azure_devops_base_url). Defaults to the cloud host.
"https://github.com"
Inclusive UTC start date. Default: last 7 days; clamped to the 180-day retention window.
Inclusive UTC end date. Default: today.
Alternative to explicit dates: lookback window in days (max 180).
Only events STRICTLY AFTER this ISO 8601 timestamp; also defaults the range to [since, today]. Use your last consumed event's timestamp for incremental pulls.
Opaque cursor from a previous response — resume paging after it.
Events per page.
x <= 1000json returns the envelope below; ndjson/csv return the raw file body with paging in X-Next-Cursor / X-Has-More headers. CSV is RFC 4180 (fields with commas, quotes or line breaks are properly quoted).
json, ndjson, csv Response
Audit events retrieved successfully. With format: ndjson or csv the body is the raw file instead, and paging moves to the X-Next-Cursor and X-Has-More response headers.
180
Events in this page
True when more pages match — call again with next_cursor
Opaque cursor for the next page; also a durable resume point
Events in ascending timestamp order (oldest first)