# Configuration

To configure Ibexa CDP, use the `ibexa.system.<scope>.cdp` [configuration key](https://doc.ibexa.co/en/latest/administration/configuration/configuration/#configuration-files):

```
ibexa:
    system:
        default:
            cdp:
                account_number: 123456
                data_export:
                    user_data:
                        transport: stream_file
                        stream_file:
                            stream_id: 00000000-00000000-00000000-00000000
                    content_data:
                        transport: stream_file
                        stream_file:
                            stream_id: 00000000-00000000-00000000-00000000
                    product_data:
                        transport: stream_file
                        stream_file:
                            stream_id: 00000000-00000000-00000000-00000000
                activations:
                    -
                        client_id: '%env(CDP_ACTIVATION_CLIENT_ID)%'
                        client_secret: '%env(CDP_ACTIVATION_CLIENT_SECRET)%'
                        segment_group_identifier: example_segment_group_identifier
```

- `account_number` - a [number](#account-number) obtained from Accounts settings in Ibexa CDP dashboard
- `stream_id` - stream ID generated when importing data from the stream file in Data Manage
- `activations` - activation details. You can configure multiple activations. They have to be of type `Ibexa` in Ibexa DXP dashboard
- `client_id` and `client_secret` - client credentials are used to authenticate against the Webhook endpoint. Make sure they're random and secure
- `segment_group_identifier` - a [location](#segment-group) to which CDP data is imported

## Account number

Now, fill in the account number. Log in to Ibexa CDP and in the top right corner, select available accounts.

A pop-up window displays a list of all available accounts and their numbers.

## Segment group

Create a segment group in the back office. It serves as a container for all segments data generated by Ibexa CDP. Go to **Admin** -> **Segments** and select **Create**. Fill in name and identifier for a segment group. Choose wisely, as once connected to CDP segment group cannot be changed.

Ibexa CDP segment group

After you create the segment group in the back office and connect it to Ibexa CDP, you cannot change it in any way, including edit its name.

Next, add a segment group identifier to the configuration.
