Configure treasure data in the Admin console
To configure Treasure Data in the Admin Console, complete the following steps:
To configure the API for Treasure Data, complete the following steps:
- Select the Settings icon, which is located at the top right of all screens.
- Select Extensions .
- Select Treasure Data CDP from the Customer Data Platform section. The Treasure Data CDP screen displays.
-
Select the
Treasure Data API
button.
The Treasure Data API screen displays, as illustrated below:

-
Enter your Treasure Data master key in the
Treasure Data Master Key
text box.
The master key is used for all allowed operations based on the user’s permission level and access.
To find your Treasure Data master key in the Treasure Data Console, complete the following steps:
- Select My settings
- Select API Keys
- Select Access Type ‘Master Key’
-
Enter your Treasure Data write-only key in the
Treasure Data Write Only Key
text box.
The write only key provides an extra security layer when controlling access to a Treasure Data account using the REST APIs. The user’s Write-only API Key only allows data to be imported to Treasure Data databases that the permissions and access levels associated with the user allow write access. This is useful when providing access to third-parties or when API keys need to be embedded in ingestion libraries, for example for web page integrations.
To find your Treasure Data master key in the Treasure Data Console, complete the following steps:
- Select My settings
- Select API Keys
- Select Access Type ‘Write-only Key’
-
Enter the name of the database you want to use in the
Treasure Data Database Name
text box.
To find a Treasure Data database name in the Treasure Data Console, complete the following steps:
- Select Data Workbench
- Select Databases
- Enter the URL that is used for requests in the Backend User Base URL text box.
- Enter an array of Treasure Data Profile API tokens in the
Audience Tokens
text box.
Profile API tokens are generated in Treasure Data, and one or more Segments can be linked to a single token. They are used to query Treasure Data for the Segments for a specific user.
If the script is injected by Zephr, you can enter values from the Zephr Extension configuration schema; if you are deploying the frontend script as a Zephr Custom UI component, you must add the values to the script manually.Note: An example script is provided in the topic.For further information on using Profile API tokens, refer to the topic in the Treasure Data documentation.
- By default, the Add manually audiences and segments checkbox is not selected. This means that Zephr retrieves all the Audiences and Segments that are defined in Treasure Data If you want to configure specific Audiences, and subsets of Segments, select the Add manually audiences and segments checkbox.
-
If the
Add manually audiences and segments
checkbox is selected, enter the Audience ID and the IDs of any Segments in that Audience in the
Audiences and Segments
text box.
For example, to add an Audience with an ID of
280983and a subset of Segments with IDs of140948,149949, and144665, enter the following:{ "280983": [ "140948", "149949", "144665" ] } - By default, a timeout of 5000 milliseconds is configured. To change this, update the entry in the Timeout (MS) text box.
- Select the Done button to save the Treasure Data API configuration and return to the Treasure Data screen.
-
Enter your Treasure Data master key in the
Treasure Data Master Key
text box.
The master key is used for all allowed operations based on the user’s permission level and access.
To find your Treasure Data master key in the Treasure Data Console, complete the following steps:
- Select the toggles beside each site for which you want to activate the plugin. Alternatively, select the Select All Sites toggle to activate the plugin on all your sites.
-
Select the
Save
button to save the configuration and activate the Treasure Data extension on the selected sites.
Once the extension is configured, you can use the Zephr segment decision node in a rule. The decision nodes can be used in either feature rules or redirects. For further information on the Treasure Data decision node, see the Features Treasure Data or Redirects Treasure Data topics.
Note: You specify which Audiences and Segments to make available in the decision node when you configure the Treasure Data CDP extension.