Skip to main content
POST
/
v1
/
audit
/
exports
Create Audit Export
curl --request POST \
  --url https://api.truthlocks.com/v1/audit/exports \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "start_date": "2023-11-07T05:31:56Z",
  "end_date": "2023-11-07T05:31:56Z",
  "format": "csv"
}
'
{
  "job_id": "job_9y8x7w_vut",
  "status": "PENDING",
  "estimated_completion": "2026-02-18T19:30:00Z"
}
Initiates an asynchronous export of audit logs for the specified time range. The export will be delivered via webhook or available for download once completed.

Parameters

start_date
string
required
ISO 8601 start date for the export range
end_date
string
required
ISO 8601 end date for the export range
format
string
Export format (json, csv)

Responses

{
  "job_id": "job_9y8x7w_vut",
  "status": "PENDING",
  "estimated_completion": "2026-02-18T19:30:00Z"
}

Authorizations

X-API-Key
string
header
required

API key for machine-to-machine authentication

Body

application/json
start_date
string<date-time>
end_date
string<date-time>
format
enum<string>
Available options:
csv,
json

Response

202 - application/json

Export job created

export_id
string<uuid>
status
string