Get Organization Audit Log Export
(v2)GET
Retrieves an organization audit log export, so you can poll one you started — poll here rather than at the download endpoint, which has nothing to serve until status is COMPLETED. An export is kept for 24 hours, or 5 minutes once it has failed, after which this returns 404. The lookup is not restricted to audit log exports, so another kind of export id comes back with its own exportType.
curl -X GET "https://api.confident-ai.com/v2/organization/audit-logs/exports/{exportId}" \
-H "CONFIDENT_API_KEY: <ORGANIZATION-API-KEY>"{
"success": true,
"data": {
"id": "<AUDIT-LOG-EXPORT-ID>",
"projectId": null,
"organizationId": "<ORGANIZATION-ID>",
"userId": "api",
"status": "IN_PROGRESS",
"exportType": "AUDIT_LOGS",
"startTime": "2025-01-01T00:00:00.000Z",
"endTime": "2025-04-01T00:00:00.000Z",
"rowCount": 18432,
"errorMessage": null,
"createdAt": "2025-04-02T09:15:00.000Z",
"completedAt": "2025-04-02T09:17:42.000Z"
},
"deprecated": false
}Headers
CONFIDENT_API_KEYstringRequiredThe organization API key for your Confident AI organization.
Path parameters
exportIdstringRequiredThe id of the audit log export, as returned when it was created.
Response
Get Organization Audit Log Export succeeded.
successbooleanIndicates if the request was successful.
dataobjectOne run of an audit log export: the period it covers, where it is in its lifecycle, and how many audit logs its file holds once it completes.
Show 12 propertiesHide 12 properties
idstringThe id of the export, a UUID generated by Confident AI. Poll and download the export by this id.
projectIdstring | nullThe project whose audit logs the export covers, or
nullfor an organization-wide export covering every project.organizationIdstringThe organization the export belongs to.
userIdstringThe actor that started the export.
apifor an export started with an organization API key, or the user's id when started through an MCP OAuth session. An export is only visible to the actor that started it.statusenumWhere an export is in its lifecycle. It is created
IN_PROGRESS, becomesCOMPLETEDonce its file is written to storage, and becomesERROREDif the run failed. Only aCOMPLETEDexport has a file to download, and bothCOMPLETEDandERROREDare terminal.Show 3 enum valuesHide 3 enum values
IN_PROGRESSCOMPLETEDERRORED
exportTypeenumThe kind of data the file contains. Always
AUDIT_LOGSfor an export started at an audit log export endpoint.Show 7 enum valuesHide 7 enum values
TRACESTRACES_WITH_SPANSCONVERSATIONSCONVERSATION_METRICSANNOTATIONSTEST_RUNSAUDIT_LOGS
startTimestring | nullStart of the period the export covers, inclusive. For an all-time export this is the timestamp of the oldest audit log matched.
endTimestring | nullEnd of the period the export covers, inclusive. For an all-time export this is the timestamp of the newest audit log matched.
rowCountinteger | nullHow many audit logs were written to the file. Null until the export completes.
errorMessagestring | nullWhy the export failed, when
statusisERRORED. Null otherwise.createdAtstringWhen the export was started.
completedAtstring | nullWhen the export finished or failed. Null while it is still running.
deprecatedbooleanIndicates if this endpoint is deprecated.