Download Export
GEThttps://api.confident-ai.com/v2/organization/audit-logs/exports/{exportId}/download
Downloads the file of a completed organization audit log export.
There is no JSON body. This responds 302 with a Location header pointing at a pre-signed object storage URL, valid for 15 minutes, which serves the gzipped CSV as a file attachment. Follow the redirect to receive the file — with curl, pass -L.
A fresh signature is minted on every call, so this endpoint is the durable link: call it again when you need the file rather than storing the URL it hands back. It returns 404 while the export is still IN_PROGRESS, if the export ERRORED, once the file has been cleaned up, and for an id that belongs to a kind of export other than an audit log export.
curl -X GET "https://api.confident-ai.com/v2/organization/audit-logs/exports/{exportId}/download" \
-H "CONFIDENT_API_KEY: <ORGANIZATION-API-KEY>"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.