v3.0
Data Onboarding

Data API Quickstart

The Adara Data API 2.0 allows data onboarding using a secure REST API. This API is designed to reduce the effort required for the onboarding process. Our data ingestion pipelines are designed to be configurable by an ADARA technical consultant, so we can accept different types of data for different industries. The main requirement is that the data must be in a JSON format.

The Data API 2.0 can be implemented as a standalone integration or in conjunction with the Web SDK. The ADARA API can be used for the following use cases:

  • The data source is not web data so the Web SDK is not applicable. A use case would be onboarding data from a mobile platform.
  • A server-to-server integration is required or recommended. The API can be used to onboard the same type of identity and events data as the Web SDK. However, you can stream larger datasets for multiple users through the API, while the SDK is more applicable for the interactions of a single visitor.
  • Transaction or purchase data that may include refunds or sales outside the online channel.
  • Adding master and dimension data to enhance the SDK integration. You could provide detailed product information for purchases or hotel information for reservations through the API, while providing online purchase or reservation through the SDK integration.

The API documentation for the endpoint is detailed here: Data APIAPI

Step 0: Provisioning

An Adara Technical Consultant will provision the following to you access the production endpoint:

  1. Client ID and Client Secret: Provides authorization for your identity to access the endpoint
  2. Pipeline ID: Uniquely identifies a data pipeline since an organization can implement pipelines for multiple data sources

You will need a credential for the production endpoint:

Step 1: Obtaining Access Token

Here is an example cURL command for acquiring the access token. However, you can use any REST API client to access the endpoint.

cURL
Copy

Here is an example of the response with your access token. Note the expiry time for the access token.

JSON
Copy

Step 2: Sending Data

Send a HTTPS POST request to the following endpoint and path to onboard data:

POST /send/{pipeline_id}

Here is an example cURL command to onboard data. However, you can use any REST API client to access the endpoint.

cURL
Copy

In the above example, we are using a data file named myfile.json. We recommend that the contents of the file be JSON-formatted as in this example for a product definition file. Our pipeline configuration allows our technical consultants to configure the data ingestion process to flexibly parse any JSON object so you are not restricted to a prescribed format.

JSON
Copy

Here is a sample response. There will be a response for each JSON record.

JSON
Copy