Launch Week 02 wrapped — explore all five launches

Get Organization Audit Log Export

GEThttps://api.confident-ai.com/v1/organization/audit-logs/exports/{exportId}

Retrieves the status of an organization audit log export. status is IN_PROGRESS, COMPLETED, or ERRORED; once COMPLETED, rowCount reports how many audit logs the file contains.

Export records are retained for 24 hours after creation. After that this endpoint returns 404.

GET/v1/organization/audit-logs/exports/{exportId}
curl -X GET "https://api.confident-ai.com/v1/organization/audit-logs/exports/{exportId}" \
  -H "CONFIDENT_API_KEY: <ORGANIZATION-API-KEY>"
200
{
  "success": true,
  "data": {
    "auditLogExport": {
      "id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
      "projectId": null,
      "organizationId": "org-uuid-1",
      "userId": "api",
      "status": "COMPLETED",
      "exportType": "AUDIT_LOGS",
      "startTime": "2026-03-09T08:12:04.221Z",
      "endTime": "2026-08-18T16:44:51.903Z",
      "rowCount": 1284302,
      "errorMessage": null,
      "createdAt": "2026-08-18T16:45:02.118Z",
      "completedAt": "2026-08-18T16:47:39.550Z"
    }
  }
}

Headers

  • CONFIDENT_API_KEYstringRequired

    The organization API key for your Confident AI organization.

Path parameters

  • exportIdstringRequired

    The unique identifier of the export, returned when it was created.

Response

  • successboolean

    Indicates if the request was successful

  • dataobject

    Show 1 propertyHide 1 property
    • auditLogExportobject

      Show 12 propertiesHide 12 properties
      • idstring

        The unique identifier of the export.

      • projectIdstring

        The project the export is scoped to, or null for an organization-wide export.

      • organizationIdstring

        The organization the export belongs to.

      • userIdstring

        The actor that started the export. api for exports started with an organization API key.

      • statusenum

        The current state of the export.

        Show 3 enum valuesHide 3 enum values
        • IN_PROGRESS
        • COMPLETED
        • ERRORED
      • exportTypeenum

        Always AUDIT_LOGS for audit log exports.

        Show 1 enum valueHide 1 enum value
        • AUDIT_LOGS
      • startTimestring

        Start of the window the export covers. For an all-time export this is the timestamp of the oldest audit log found.

      • endTimestring

        End of the window the export covers. For an all-time export this is the timestamp of the newest audit log found.

      • rowCountinteger

        The number of audit logs written to the file. null until the export completes.

      • errorMessagestring

        Why the export failed, when status is ERRORED.

      • createdAtstring

        When the export was started.

      • completedAtstring

        When the export finished or failed. null while it is still running.

Built byConfident AI