# Step 5: Upload the Configuration via CDP API

Use the CDP API to create the Composable Parent Segment from your configuration file.

## API Endpoint

```
POST https://api-cdp.<region>.treasuredata.com/composable_audiences
```

Regional 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` |


## Authentication

Include a Treasure AI API key in the `Authorization` header using the `TD1` scheme.

## Request

**Headers:**

```
Authorization: TD1 <your_api_key>
Content-Type: application/json
```

**Body:** The JSON configuration file created in [Step 4](/products/customer-data-platform/composable-cdp/bigquery/create-parent-segment-config).

## Example: Upload Using curl

```bash
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.json
```

Replace:

- `<your_api_key>` with your Treasure AI Master API key
- `parent_segment_config.json` with the path to your configuration file


## Response

On success, the API returns the created Parent Segment with an assigned ID. Save this ID for future reference.