POST /v1/batch/contacts
Creates multiple contacts in a single request. If a contact with the same phone number already exists, it is skipped unless you setoverwrite=true.
Query parameters
When
true, overwrites any existing contact that matches a phone number in your request. When false, existing contacts are left unchanged.Request body
Send an array of contact objects. Each object supports the following fields:Phone number in E.164 format without the leading
+.First name.
Last name.
Full display name shown in the inbox.
Email address.
Set to
true if the contact has opted out of messages.Response
Returns an array of contact objects that failed to be created. If all contacts were created successfully, returns"ok".
Example
POST /v2/contacts
Bulk creates or updates contacts using the v2 API. Contacts that include acontact_id (UUID) are updated; contacts without one are created.
Request body
Array of contact objects. Each object follows the same structure as
POST /v2/contact. Include contact_id (UUID) to update an existing contact, or omit it to create a new one.Response
Array of successfully created or updated contact objects.
Array of contact objects that could not be created or updated, along with error details.
Example
DELETE /v2/contacts
Bulk deletes contacts by UUID using the v2 API.Request body
Array of channel filter objects. To delete by UUID, use
channel_type: "id" and provide the contact UUIDs in channel_ids.channel_type— set to"id"to target contacts by UUID.channel_ids— array of contact UUID strings to delete.
To bulk delete by UUID, set
channel_type to "id" and pass the list of contact UUIDs in channel_ids.