- 1 Minute to read
- Print
- DarkLight
/contact/create
- 1 Minute to read
- Print
- DarkLight
The "Post /contact/create" endpoint is designed to create a new contact using the provided contact object information. It allows for various identifiers to be included in the request body. The request body must be formatted in JSON and includes parameters such as contactId (integer), emailAddress (string), mobileNumber (string), applicationAlias (string), identifier (string), attributes (an array of objects with name and value), unifiedIdentifiers (an array of objects with name and value), and channelAddresses (an array of objects with name and value). Successful requests return a 200 status code with the contact details, while a 400 status code indicates that the contact already exists. This functionality is essential for managing contact information effectively within applications.
Creates a new contact using the information provided in the contact object.
Check Contact_ for possible identifiers in the body.
Request body examples:
{
"emailAddress": "test20210203@dropmail.mapp.com",
"attributes":
[
{"name": "FirstName", "value": "John"},
{"name": "LastName", "value": "Smith"},
{"name": "mobileNumber", "value": "33505606709"},
{"name": "user.ISOCountryCode", "value": "FR"}
]
}
{
"emailAddress" : "testuser@dropmail.mapp.com"
}
Such contact already exists