Skip to main content
POST
/
audit
/
export
Request audit logs export
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"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
orgId
string<uuid>
projectId
string<uuid>
eventType
string
startDate
string<date-time>
endDate
string<date-time>
source
Available options:
api
userId
string<uuid>

Response

Default Response

statusCode
number
message
string
default:OK
data
object