curl --request POST \
--url https://api.comm.com/api/v1/contacts/upsert \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"contacts": [
{
"country": "<string>",
"contact_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"phone_normalized": "<string>",
"email_normalized": "<string>",
"email_is_good": 123,
"email_is_good_reason": 123,
"name": "<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>"
}
],
"webhook_request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'{
"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 '
{
"contacts": [
{
"country": "<string>",
"contact_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"phone_normalized": "<string>",
"email_normalized": "<string>",
"email_is_good": 123,
"email_is_good_reason": 123,
"name": "<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>"
}
],
"webhook_request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'{
"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.
1000Show child attributes
ISO 3166-1 alpha-2 country code
'contacts..phone_is_good' => 'nullable|numeric', 'contacts..phone_is_good_reason' => 'nullable|numeric',
'contacts..custom1_str' => 'nullable|string', 'contacts..custom2_str' => 'nullable|string', 'contacts..custom3_str' => 'nullable|string', 'contacts..custom4_str' => 'nullable|string', 'contacts..custom5_str' => 'nullable|string', 'contacts..custom1_int' => 'nullable|numeric', 'contacts..custom2_int' => 'nullable|numeric', 'contacts..custom3_int' => 'nullable|numeric', 'contacts..custom4_int' => 'nullable|numeric', 'contacts..custom5_int' => 'nullable|numeric', 'contacts..custom1_dec' => 'nullable|numeric', 'contacts..custom2_dec' => 'nullable|numeric', 'contacts..custom1_datetime' => 'nullable|string', 'contacts..custom2_datetime' => 'nullable|string', 'contacts..custom3_datetime' => 'nullable|string', 'contacts..custom4_datetime' => 'nullable|string', 'contacts.*.custom5_datetime' => 'nullable|string',
'contacts.*.network_brand_id' => 'sometimes|string',