Audit Logs
List Audit Events
Changed onRetrieves 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.
post/api/audit/events
Request
- Base URLhttps://api.codeant.ai
- URLhttps://api.codeant.ai/api/audit/events
- AuthHTTP bearer
Request body
Example request
{
"github_base_url": "https://github.com"
}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.
Example response
{
"retention_days": 180,
"events": [
{
"event_id": "a3f9c2e1b4d84f7a9c0e5d6b7a8f9012",
"timestamp": "2026-07-30T09:14:03.512345Z",
"action": "rbac.role_update",
"description": "Access control: role update",
"actor_id": "harshit-dubey",
"actor_email": "admin@example.com",
"org": "Example-Org",
"base_url_domain": "github.com",
"target_type": "rbac",
"target_id": "role_7d2f",
"target_name": "Security Reviewer",
"status_code": 200,
"method": "POST",
"path": "/settings/rbac/roles/update",
"ip": "203.0.113.42"
}
]
}Changes
- info
endpoint added
- info