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"
}
'
{
  "export_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "status": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.truthlocks.com/llms.txt

Use this file to discover all available pages before exploring further.

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

report_type
string
Compliance framework to format the export for. One of soc2, gdpr, or hipaa. When omitted, a raw audit log export is generated. Requires the Compliance Pack add-on. See the compliance exports guide for report contents.
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 or csv). CSV is available for all report types.

Responses

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