Export Audit Logs

POSThttps://sandbox-api.truthlocks.com/v1/audit/exportsAuth required

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.

Body Parameters

start_datestringrequired

ISO 8601 start date for the export range

Defaults to 2026-02-01T00:00:00Z

end_datestringrequired

ISO 8601 end date for the export range

Defaults to 2026-02-18T23:59:59Z

formatstring

Export format (json, csv)

Defaults to json

Responses

{
  "job_id": "job_9y8x7w_vut",
  "status": "PENDING",
  "estimated_completion": "2026-02-18T19:30:00Z"
}
POST/v1/audit/exports
Language
CredentialsHEADER
Authorization
cURL Request
Examples ▾
curl --request POST \
  --url https://sandbox-api.truthlocks.com/v1/audit/exports \
  --header 'accept: application/json' \
  --header 'content-type: application/json' \
  --data '{
  "start_date": "2026-02-01T00:00:00Z",
  "end_date": "2026-02-18T23:59:59Z",
  "format": "json"
}'
Response

Click Try It! to send a real request, or view sample responses: