GET /api/v1/audit-export
Export audit logs with filtering and pagination.Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
format | string | No | Export format: json, csv, or soc2 (default: json) |
startDate | string | No | ISO 8601 start date filter |
endDate | string | No | ISO 8601 end date filter |
entityType | string | No | Filter by entity type (e.g., offer, channel, user) |
action | string | No | Filter by action: create, update, delete |
limit | number | No | Max records (default: 10000, max: 10000) |
offset | number | No | Pagination offset |
Example
Response — JSON Format
Response — CSV Format
Returns a CSV file download withContent-Disposition: attachment.
POST /api/v1/audit-export
Verify the integrity of the audit log chain. Ensures no records have been tampered with or deleted. Admin only.Request Body
| Field | Type | Required | Description |
|---|---|---|---|
action | string | Yes | Must be verify_integrity |
startDate | string | No | ISO 8601 start date |
endDate | string | No | ISO 8601 end date |