# Step 5: Upload the Configuration via CAS API

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

## API Endpoint


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

Regional endpoints:

| Region | Endpoint |
|  --- | --- |
| US | `https://api-cas.treasuredata.com/composable_audiences` |
| Tokyo | `https://api-cas.treasuredata.co.jp/composable_audiences` |
| EU01 | `https://api-cas.eu01.treasuredata.com/composable_audiences` |


## Authentication

Include a Treasure 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/databricks/create-parent-segment-config).

## Example: Upload Using curl


```bash
curl -X POST https://api-cas.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 Data 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.