POST /contacts/v1/contacts
Creates a new contact with the specified information in the specified attribute groups.
Name | Type | Description | |
---|---|---|---|
contactKey | string | Primary address for the contact. You must provide either a value for contactKey or contactID. | |
contactID | string | Unique ID for the contact. You must provide either a value for contactKey or contactID. | |
attributeSets | array | Required | Array of information used to create a new contact |
attributeSets.name | string | Required | Name of attribute group to which to add the contact information |
attributeSets.values | array | Name and value pairs indicating the attribute and applicable value |
Example Request
The request must include at least one of the attribute sets to create a new contact:
- Email Addresses (You must also include this attribute set if you include Email Demographics)
- MobileConnect Demographics (You must include a country code for the
Locale
value) - MobilePush Demographics (You must include an
ApplicationID
value) - LINE Addresses and LINE Subscriptions (You must also include these attribute sets if you include LINE Demographics)
Each call accepts only one instance of each attribute set.
You must also include values for contactKey
and HTML Enabled
.
Change @example.com
to a valid domain.
Example Response