Skip to main content
GET
/
api
/
v1
/
audit
/
export
Export Audit Log (CSV)
curl --request GET \
  --url https://api.example.com/api/v1/audit/export
Streams matching audit entries as a CSV attachment. Without orgId, the export is scoped to your own entries.

Authentication

Requires an API key with billing scope. Org-scoped exports additionally require the View audit log permission for that organization.

Query Parameters

orgId
string
Export entries for this organization instead of your personal entries.
action
string
Filter to a single action (e.g., completion.created).
from
string
ISO timestamp lower bound (inclusive).
to
string
ISO timestamp upper bound (inclusive).

Response

Content-Type: text/csv attachment. Columns:
timestamp,action,entity_type,entity_id,model_id,ip_address,user_agent,route,input_summary,output_summary

Example

curl
curl -L "https://www.hitheo.ai/api/v1/audit/export?from=2026-05-01&to=2026-06-01" \
  -H "Authorization: Bearer $THEO_API_KEY" \
  -o theo-audit-log.csv