Get Export Destination
(v2)GET
Retrieves an export destination by id. Its credentials come back masked — fifteen asterisks followed by the last six characters of the stored value — so you can tell which key is in use without the key itself being returned.
curl -X GET "https://api.confident-ai.com/v2/export-destinations/{exportDestinationId}" \
-H "CONFIDENT_API_KEY: <PROJECT-API-KEY>"{
"success": true,
"data": {
"id": "<EXPORT-DESTINATION-ID>",
"name": "Nightly S3 exports",
"type": "S3",
"bucket": "acme-llm-exports",
"region": "us-east-1",
"accessKeyId": "***************XAMPLE",
"secretAccessKey": "***************PLEKEY",
"pathPrefix": "confident-ai/",
"snowflakeConfig": {
"account": "myorg-myaccount",
"username": "CONFIDENT_EXPORTER",
"role": "CONFIDENT_EXPORT_ROLE",
"warehouse": "CONFIDENT_WH",
"database": "ANALYTICS",
"schema": "CONFIDENT",
"privateKey": "***************Y-----",
"privateKeyPassphrase": "***************"
},
"enabled": true,
"createdAt": "2025-01-15T10:30:00.000Z",
"updatedAt": "2025-01-20T08:15:00.000Z"
},
"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.
Path parameters
exportDestinationIdstringRequiredThe id of the export destination.
Response
Get Export Destination succeeded.
successbooleanIndicates if the request was successful.
dataobjectA destination export schedules send exports to, with its credentials masked. Confident AI returns the last six characters of each credential so you can tell which one is stored, never the credential itself.
Show 12 propertiesHide 12 properties
idstringThe id of the destination, generated by Confident AI.
namestringThe name of the destination.
typeenumWhere exports go.
S3uploads files to a bucket andSNOWFLAKEloads rows into tables; any other member is rejected on create. A destination's type can't be changed after it is created.Show 4 enum valuesHide 4 enum values
S3GCSAZURE_BLOBSNOWFLAKE
bucketstring | nullThe name of the bucket exports are uploaded to, or
nullfor aSNOWFLAKEdestination.regionstring | nullThe region the bucket lives in, or
nullfor aSNOWFLAKEdestination.accessKeyIdstring | nullNull for a
SNOWFLAKEdestination. Otherwise the stored access key id, masked: fifteen asterisks followed by its last six characters. The real key id is never returned. Send this value back on an update to leave the stored key id alone, or omit the field entirely.secretAccessKeystring | nullNull for a
SNOWFLAKEdestination. Otherwise the stored secret access key, masked: fifteen asterisks followed by its last six characters. The real secret is never returned. Send this value back on an update to leave the stored secret alone, or omit the field entirely.pathPrefixstring | nullThe folder inside the bucket exports are written under, always ending in a slash, or
nullwhen they are written to the root of the bucket or the destination isSNOWFLAKE.snowflakeConfigobject | nullA Snowflake destination's settings with the private key and passphrase masked.
Show 8 propertiesHide 8 properties
accountstringThe Snowflake account identifier, as
<organization>-<account>. A fullhttps://<account>.snowflakecomputing.comURL is accepted and trimmed to the identifier.usernamestringThe Snowflake user Confident AI signs in as, ideally a
TYPE = SERVICEuser whoseRSA_PUBLIC_KEYmatchesprivateKey.rolestringThe role loads run as. It needs USAGE on the warehouse, database and schema, and CREATE
TABLEon the schema.warehousestringThe warehouse that runs each load.
databasestringThe database the export tables live in.
schemastringThe schema Confident AI creates
CONFIDENT_TRACESandCONFIDENT_ANNOTATIONSin.privateKeystringThe stored private key, masked: fifteen asterisks followed by its last six characters. Send this value back on an update to keep the stored key.
privateKeyPassphrasestring | nullThe stored passphrase, fully masked as fifteen asterisks, or
nullwhen the key is unencrypted. Send it back on an update to keep the stored passphrase.
enabledbooleanWhether export schedules may upload to this destination.
createdAtstringThe timestamp when the destination was created.
updatedAtstringThe timestamp when the destination was last updated.
linkstringThis is the URL of the resource on the Confident AI platform.
deprecatedbooleanIndicates if this endpoint is deprecated.