Add contact
Add a new contact. When a given phone number already exists, it updates existing contact. If existing contact gets updated, all information gets overwritten, including all extra fields.
Method
POST
Path
/contacts/[phone_number]
Path parameter
Body parameters
Response
HTTP status codes
Response object
Code sample
curl --location --request POST 'https://api.sociocs.com/contacts/16175551212' \
--header 'apikey: your_api_key' \
--header 'Content-Type: application/json' \
--data-raw '{
"list_id": 0,
"phone_number_cc": "1",
"name": "John Johnson",
"extra_fields": {
"email_address": john@example.com
}
}'