Find or Create a Contact
Attempts to find and return a contact using the email address or mobile number. If a contact is not found, a new contact is created.
This API is similar to the Get a Contact API, but creates a new contact if a contact is not found.
How this API is used:
Find or create by email address /api/v1/contact/upsert?email=ben@example.com
Find or create by mobile phone /api/v1/contact/upsert?mobilephone=+155512345678
Query Parameters
emailstring
Either an email address or mobile phone number must be provided.
mobilephonestring
Either an email address or mobile phone number must be provided.
HTTP Response Examples
200
{
"Status": true,
"Message": "",
"Response": {
"id": "5a0d669ab6984125a1c63aaacfd0a9cd"
}
}
HTTP Response Parameters
Response.idstring
The dsid of the contact that was updated or created.