Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 23 additions & 18 deletions src/connections/destinations/catalog/cordialio/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,39 +29,43 @@ If the `user_id` passed is _valid and known_, and the `group_id` passed is _vali

If the `user_id` passed is _invalid_, an error will be returned.

### Supported data parameters:
| Segment key | Type | Cordial mapping |
| ------------- |:-------------:| -----|
| `user_id` | string | email address or custom primary key |
| `group_id` | string | list ID |
### Supported data parameters

| Segment key | Type | Cordial mapping |
| ----------- |:------:| ----------------------------------- |
| `user_id` | string | email address or custom primary key |
| `group_id` | string | list ID |

## Track
If the `user_id` passed is _valid and known_, the event and its properties will be attributed to the contact in Cordial.

If the `user_id` passed is _invalid_, an error will be returned.

### Supported data parameters:
| Segment key | Type | Cordial mapping |
| ------------- |:-------------:| -----|
| `user_id` | string | email address or custom primary key |
| `event` | string | event name |
| `properties` | object | event properties (optional) |
### Supported data parameters

| Segment key | Type | Cordial mapping |
| ------------ |:------:| ----------------------------------- |
| `user_id` | string | email address or custom primary key |
| `event` | string | event name |
| `properties` | object | event properties (optional) |

## Page
If the `user_id` passed is _valid and known_, a page view event will be attributed to the contact in Cordial.

If the `user_id` passed is _invalid_, an error will be returned.

### Supported data parameters:
| Segment key | Type | Cordial mapping |
| ------------- |:-------------:| -----|
| `user_id` | string | email address or custom primary key |

| Segment key | Type | Cordial mapping |
| ----------- |:------:| ----------------------------------- |
| `user_id` | string | email address or custom primary key |

## Optional advanced configuration

### POST https://admin.cordial.io/api/integrations/segment
`POST https://admin.cordial.io/api/integrations/segment`
This endpoint can be used to configure custom mappings for your Segment destination.

```
```js
{ "name":"segment",
"enabled":true,
"attributeMapping":[
Expand All @@ -73,10 +77,11 @@ This endpoint can be used to configure custom mappings for your Segment destinat
"ignoreFields":["website"],
"contactsErrorHandling":"ignoreMissingAttributes" }
```

You will be asked to authenticate. Use your Cordial API key as the username and proceed with the password blank. (To do this, log in to your Cordial account and open the dropdown menu in the top right corner. Navigate to Administration > API Keys. Here you will create a new key by whitelisting your IP with us.)

### PUT https://admin.cordial.io/api/integrations/segment
`PUT https://admin.cordial.io/api/integrations/segment`
Update your Cordial/Segment field mapping using the same JSON format as in the POST call.

### GET https://admin.cordial.io/api/integrations
`GET https://admin.cordial.io/api/integrations`
Retrieve a JSON list of integrations you have set up with Cordial.