Skip to main content
The audit-log endpoints power the System Auditing hub and are available for direct integration. All endpoints are scoped to the requesting workspace and live under /api.

List audit logs

Returns up to 100 of the most recent audit events for the workspace, newest first.

Query parameters

Example request

Example response

Each log entry includes SAIF policy results in policyChecks: whether the SAIF check passed, how many PII items were detected and redacted, and whether the run stayed under the budget threshold.

Get audit stats

Returns aggregate governance telemetry for the workspace. pendingReviews counts workflow runs paused with status paused_for_approval.

Example response

Export audit logs as CSV

Returns the audit log as a CSV file with Content-Type: text/csv and a Content-Disposition attachment header. The filename is agentlab-audit-logs-<timestamp>.csv. Columns: Log ID, Timestamp, Agent / Source, Action Type, Model, Status, Latency (ms), Tokens Total, Cost ($), SAIF Passed, PII Redactions, and Summary / Message.

Approve a pending action

Approves an audit item with status requires_approval so the paused agent action can proceed. id is the audit log entry ID.

Reject a pending action

Rejects an audit item with status requires_approval and cancels the pending agent action.

Errors

All endpoints return HTTP 500 with a JSON error field if the request fails, for example: