curl --request POST \
--url https://api.comm.com/api/v1/contacts/upsert \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"webhook_request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"contacts": [
{
"contact_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"phone_normalized": "<string>",
"email_normalized": "<string>",
"email_is_good": 123,
"email_is_good_reason": 123,
"name": "<string>",
"country": "<string>",
"state_id": 123,
"state_id_reason": 123,
"custom_fields": [
{
"name": "<string>",
"value": "<string>",
"type": "string"
}
],
"network_brand": "<string>",
"mcc": "<string>",
"mnc": "<string>",
"foreign_id": "<string>",
"raw_response": "<string>"
}
]
}'
{
"message": "Job dispatched",
"jobs_count": "<string>",
"automation_run_id": "<string>",
"webhook_request_id": "<string>",
"contacts_count": "<string>"
}
curl --request POST \
--url https://api.comm.com/api/v1/contacts/upsert \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"webhook_request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"contacts": [
{
"contact_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"phone_normalized": "<string>",
"email_normalized": "<string>",
"email_is_good": 123,
"email_is_good_reason": 123,
"name": "<string>",
"country": "<string>",
"state_id": 123,
"state_id_reason": 123,
"custom_fields": [
{
"name": "<string>",
"value": "<string>",
"type": "string"
}
],
"network_brand": "<string>",
"mcc": "<string>",
"mnc": "<string>",
"foreign_id": "<string>",
"raw_response": "<string>"
}
]
}'
{
"message": "Job dispatched",
"jobs_count": "<string>",
"automation_run_id": "<string>",
"webhook_request_id": "<string>",
"contacts_count": "<string>"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
The response is of type object
.