Use the CDP API to create the Composable Parent Segment from your configuration file.
POST https://api-cdp.<region>.treasuredata.com/composable_audiencesRegional endpoints:
| Region | Endpoint |
|---|---|
| US | https://api-cdp.us01.treasuredata.com/composable_audiences |
| JP | https://api-cdp.treasuredata.co.jp/composable_audiences |
| EU | https://api-cdp.eu01.treasuredata.com/composable_audiences |
Include a Treasure AI API key in the Authorization header using the TD1 scheme.
Headers:
Authorization: TD1 <your_api_key>
Content-Type: application/jsonBody: The JSON configuration file created in Step 4.
curl -X POST https://api-cdp.us01.treasuredata.com/composable_audiences \
-H "Authorization: TD1 <your_api_key>" \
-H "Content-Type: application/json" \
-d @parent_segment_config.jsonReplace:
<your_api_key>with your Treasure AI Master API keyparent_segment_config.jsonwith the path to your configuration file
On success, the API returns the created Parent Segment with an assigned ID. Save this ID for future reference.