Create a New Broadcast Group
Easily create WhatsApp broadcast groups with the DoubleTick API to manage and send messages to multiple recipients efficiently. π
API Endpoint
Use the following endpoint to create a new broadcast group:
POST https://public.doubletick.io/groups
Request Headers
{
"Authorization": "YOUR_API_KEY",
"Content-Type": "application/json"
}
Request Body Parameters
{
"members": [
{
"name": "test_1",
"phone": "customer_phone_number"
},
{
"name": "test_2",
"phone": "customer_phone_number"
}
],
"name": "your_group_name"
}
Parameters
name
(string, required): The name of the broadcast group.members
(array, required): A list of members to be added to the group.name
(string, required): The name of the customer.phone
(string, required): The phone number of the customer in international format.
Responses
Success Response (201)
{
"groupData": {
"groupId": "group_id",
"memberCount": 2,
"groupChatName": "broadcast_group_name"
},
"invalidMembers": [
{
"name": "customer_name",
"phone": "customer_phone_number"
}
]
}
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.
- Choose a unique and meaningful group name for easy identification.
- Keep group sizes optimized for efficient message delivery.
Updated 14 days ago
Whatβs Next
Explore more message types and enhance your WhatsApp communication with DoubleTick API