Create Destination
POSThttps://api.confident-ai.com/v2/export-destinations
Creates an export destination in your Confident AI project and returns its id. Credentials must be sent in full — a masked value copied from a read is rejected, since storing the mask would leave a destination that can never authenticate. A project holds at most three destinations.
curl -X POST "https://api.confident-ai.com/v2/export-destinations" \
-H "CONFIDENT_API_KEY: <PROJECT-API-KEY>" \
-H "Content-Type: application/json" \
-d '{
"name": "Nightly S3 exports",
"type": "S3",
"bucket": "acme-llm-exports",
"region": "us-east-1",
"accessKeyId": "AKIAIOSFODNN7EXAMPLE",
"secretAccessKey": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY",
"pathPrefix": "confident-ai/",
"enabled": true
}'{
"success": true,
"data": {
"id": "<EXPORT-DESTINATION-ID>"
},
"link": "https://app.confident-ai.com/project/<PROJECT-ID>/project-settings/exports",
"deprecated": false
}Headers
CONFIDENT_API_KEYstringRequiredThe API key of your Confident AI project.
Request body
namestringRequiredThe name of the destination, as it appears in your project.
typeenumThe kind of storage exports are uploaded to. Only
S3is supported today, and any other member is rejected on create and update.Show 4 enum valuesHide 4 enum values
S3GCSAZURE_BLOBSNOWFLAKE
bucketstringRequiredThe name of the bucket exports are uploaded to.
regionstringRequiredThe region the bucket lives in.
accessKeyIdstringRequiredThe access key id Confident AI uploads with. Reads return this masked, as fifteen asterisks followed by its last six characters, so a masked value is rejected here — send the real key id.
secretAccessKeystringRequiredThe secret access key paired with
accessKeyId. Confident AI never returns it in full, so a masked value is rejected here — send the real secret.pathPrefixstring | nullA folder inside the bucket to write exports under. A leading slash is stripped and a trailing one added, so
/confident-aiis stored asconfident-ai/. Omit it, or send null or an empty string, to write to the root of the bucket.enabledbooleanWhether export schedules may upload to this destination. Defaults to true.
Response
Create Destination succeeded.
successbooleanIndicates if the request was successful.
dataobjectA reference to an export destination by its id.
Show 1 propertyHide 1 property
idstringThe id of the destination, generated by Confident AI.
linkstringThis is the URL of the resource on the Confident AI platform.
deprecatedbooleanIndicates if this endpoint is deprecated.