Create Contact
Creates a new contact within the workspace. Duplicate checks are automatically performed against existing phone numbers in the workspace.
phoneNumber and countryCode to create a contact. You can also optionally enrich the contact’s profile with their name, email, tags, and custom fields during creation.
The system automatically performs duplicate checks. By default, you cannot create multiple contacts with the same phone number in a single workspace. You can pass overwrite: true to seamlessly update the existing contact’s values instead of receiving a duplication error.
Create a contact with a full phone number
If you only have one number that already includes the country code, usePOST /api/contacts/create-with-phone. You send the full number in phoneNumber and we detect the country code. Don’t send countryCode. If you do, the request is rejected.
customFields are merged. Send "overwrite": false to get a 409 duplicate error instead.91 and phone number 9876543210.
Request body
Responses
The success response has the same shape as thePOST /api/contacts response. A new contact returns 201.
Authorizations
Body
Contact's first name
2 - 50"John"
Phone number without country code (typically 10-15 digits)
"9876543210"
Country code including '+' (e.g. +91, +1)
"+91"
Required source identifier (e.g., contact_form)
50"contact_form"
Contact's last name
50"Doe"
Formatted name used in active chats
100"John Doe"
Contact's email address
"john.doe@example.com"
Auto-subscribe contact to WhatsApp broadcasts
If true, updates the existing contact if a contact with the same phone number already exists, instead of returning a duplicate error.
Array of 24-character hexadecimal MongoDB Tag IDs to assign
Array of custom field values to assign
Date of Birth (YYYY-MM-DD)
"1990-01-15"
Anniversary date (YYYY-MM-DD)
"2020-06-20"
