Add Members to a Broadcast Group
Easily add new members to an existing WhatsApp broadcast group using the DoubleTick API for dynamic audience management and targeted messaging. π
API Endpoint
Use the following endpoint to add members to a broadcast group:
POST https://public.doubletick.io/groups/add-members
Request Headers
{
"Authorization": "YOUR_API_KEY",
"Content-Type": "application/json"
}
Request Body Parameters
{
"groupId": "group_unique_id",
"members": [
{
"name": "John Doe",
"phone": "customer_number"
},
{
"name": "Jane Smith",
"phone": "customer_number"
}
]
}
Parameters
groupId
(string, required): The unique ID of the broadcast group.members
(array of objects, required): A list of members to be added.name
(string, optional): The name of the customer.phone
(string, required): The phone number of the customer in international format.
Responses
Success Response (201)
{
"invalidMembers": [
{
"name": "customer_name",
"phone": "customer_phone_number"
}
],
"createdMembers": [
"added_new_customer_phone_number"
],
"membersAlreadyPresent": [
"already_present_customer_phone_number"
],
"groupId": "group_id"
}
Bad Request (400)
{
"message": "error_message",
"error": "Bad Request",
"statusCode": 400
}
Unauthorized (401)
{
"message": "Invalid public api key",
"error": "Unauthorized",
"statusCode": 401
}
Unprocessable Entity (422)
{
"message": "invalid file type for audio: text/html; charset=utf-8",
"error": "Unprocessable Entity",
"statusCode": 422
}
Best Practices
- Ensure all phone numbers follow the international format.
- Verify that the group ID is correct before sending the request.
- Regularly update group members for accurate audience segmentation.
Updated 14 days ago
Whatβs Next
Explore more message types and enhance your WhatsApp communication with DoubleTick API