Create a credential configuration

IMPORTANT
API endpoint: platform.adobe.io/data/core/activation/authoring/credentials

This page exemplifies the API request and payload that you can use to create a credential configuration using the /authoring/credentials API endpoint.

When to use the /credentials API endpoint when-to-use

IMPORTANT
In most cases, you do not need to use the /credentials API endpoint. Instead, you can configure the authentication information for your destination via the customerAuthenticationConfigurations parameters of the /destinations endpoint.
Read Customer authentication configuration for detailed information on the supported authentication types.

Use this API endpoint to create a credential configuration only if there is a global authentication system between Adobe and your destination platform, and the Platform customer does not need to provide any authentication credentials to connect to your destination. In this case, you must create a credential configuration using the /credentials API endpoint.

When using a global authentication system, you must set "authenticationRule":"PLATFORM_AUTHENTICATION" in the destination delivery configuration, when creating a new destination configuration.

IMPORTANT
All parameter names and values supported by Destination SDK are case sensitive. To avoid case sensitivity errors, please use the parameters names and values exactly as shown in the documentation.

Getting started with credentials API operations get-started

Before continuing, please review the getting started guide for important information that you need to know in order to successfully make calls to the API, including how to obtain the required destination authoring permission and required headers.

Create a credentials configuration create

You can create a new credentials configuration by making a POST request to the /authoring/credentials endpoint.

API format

POST /authoring/credentials

The following requests create new credential configurations, defined by the parameters provided in the payload.

Select each tab below to view the corresponding payload.

Basic

Create a basic credential configuration

accordion
Request
code language-shell
curl -X POST https://platform.adobe.io/data/core/activation/authoring/credentials \
 -H 'Authorization: Bearer {ACCESS_TOKEN}' \
 -H 'Content-Type: application/json' \
 -H 'x-gw-ims-org-id: {ORG_ID}' \
 -H 'x-api-key: {API_KEY}' \
 -H 'x-sandbox-name: {SANDBOX_NAME}' \
 -d '
{
    "basicAuthentication":{
      "url":"string",
      "username":"string",
      "password":"string"
   }
}
table 0-row-3 1-row-3 2-row-3 3-row-3 layout-auto
Parameter Type Description
url String URL of authorization provider
username String Credentials configuration login username
password String Credentials configuration login password
accordion
Response
A successful response returns HTTP status 200 with details of your newly created credentials configuration.
Amazon S3

Create an Amazon S3 credential configuration

accordion
Request
code language-shell
curl -X POST https://platform.adobe.io/data/core/activation/authoring/credentials \
 -H 'Authorization: Bearer {ACCESS_TOKEN}' \
 -H 'Content-Type: application/json' \
 -H 'x-gw-ims-org-id: {ORG_ID}' \
 -H 'x-api-key: {API_KEY}' \
 -H 'x-sandbox-name: {SANDBOX_NAME}' \
 -d '
{
   "s3Authentication":{
      "accessId":"string",
      "secretKey":"string"
   }
}
table 0-row-3 1-row-3 2-row-3 layout-auto
Parameter Type Description
accessId String Amazon S3 access ID
secretKey String Amazon S3 secret key
accordion
Response
A successful response returns HTTP status 200 with details of your newly created credentials configuration.
SSH

Create an SSH credential configuration

accordion
Request
code language-shell
curl -X POST https://platform.adobe.io/data/core/activation/authoring/credentials \
 -H 'Authorization: Bearer {ACCESS_TOKEN}' \
 -H 'Content-Type: application/json' \
 -H 'x-gw-ims-org-id: {ORG_ID}' \
 -H 'x-api-key: {API_KEY}' \
 -H 'x-sandbox-name: {SANDBOX_NAME}' \
 -d '
{
    "sshAuthentication":{
      "username":"string",
      "sshKey":"string"
   }
}
table 0-row-3 1-row-3 2-row-3 layout-auto
Parameter Type Description
username String Credentials configuration login username
sshKey String SSH key for SFTP with SSH authentication
accordion
Response
A successful response returns HTTP status 200 with details of your newly created credentials configuration.
Azure Data Lake Storage

Create an Azure Data Lake Storage credential configuration

accordion
Request
code language-shell
curl -X POST https://platform.adobe.io/data/core/activation/authoring/credentials \
 -H 'Authorization: Bearer {ACCESS_TOKEN}' \
 -H 'Content-Type: application/json' \
 -H 'x-gw-ims-org-id: {ORG_ID}' \
 -H 'x-api-key: {API_KEY}' \
 -H 'x-sandbox-name: {SANDBOX_NAME}' \
 -d '
{
    "azureAuthentication":{
      "url":"string",
      "tenant":"string",
      "servicePrincipalId":"string",
      "servicePrincipalKey":"string"
   }
}
table 0-row-3 1-row-3 2-row-3 3-row-3 4-row-3 layout-auto
Parameter Type Description
url String URL of authorization provider
tenant String Azure Data Lake Storage tenant
servicePrincipalId String Azure Service Principal ID for Azure Data Lake Storage
servicePrincipalKey String Azure Service Principal Key for Azure Data Lake Storage
accordion
Response
A successful response returns HTTP status 200 with details of your newly created credentials configuration.
Azure Blob Storage

Create an Azure Blob Storage credential configuration

accordion
Request
code language-shell
curl -X POST https://platform.adobe.io/data/core/activation/authoring/credentials \
 -H 'Authorization: Bearer {ACCESS_TOKEN}' \
 -H 'Content-Type: application/json' \
 -H 'x-gw-ims-org-id: {ORG_ID}' \
 -H 'x-api-key: {API_KEY}' \
 -H 'x-sandbox-name: {SANDBOX_NAME}' \
 -d '
{
    "azureConnectionStringAuthentication":{
      "connectionString":"string"
   }
}
table 0-row-3 1-row-3 layout-auto
Parameter Type Description
connectionString String Azure Blob Storage connection string
accordion
Response
A successful response returns HTTP status 200 with details of your newly created credentials configuration.

API error handling error-handling

Destination SDK API endpoints follow the general Experience Platform API error message principles. Refer to API status codes and request header errors in the Platform troubleshooting guide.

Next steps next-steps

After reading this document, you now know when to use the credentials endpoint and how to set up a credentials configuration using the /authoring/credentials API endpoint Read how to use Destination SDK to configure your destination to understand where this step fits into the process of configuring your destination.

recommendation-more-help
7f4d1967-bf93-4dba-9789-bb6b505339d6