curl --request POST \
--url http://localhost:3000/audit/export \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"orgId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"eventType": "<string>",
"startDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"source": "api",
"userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'{
"statusCode": 123,
"message": "OK",
"data": {
"exportId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"statusUrl": "<string>",
"estimatedCompletionTime": "2023-11-07T05:31:56Z"
}
}Queues an export of audit logs as CSV with optional filters. Returns 202 Accepted with status URL. Rate limited to 1 export per 10 minutes per user.
curl --request POST \
--url http://localhost:3000/audit/export \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"orgId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"eventType": "<string>",
"startDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"source": "api",
"userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'{
"statusCode": 123,
"message": "OK",
"data": {
"exportId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"statusUrl": "<string>",
"estimatedCompletionTime": "2023-11-07T05:31:56Z"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.