Mon-Fri 10am - 6pm
Add Group Members
Base URL for your account: https://cpaas.studio
POST
/api/whatsapp/v1/groups/{uid}/members
Add existing contacts by phone (up to 10,000 per call).
Parameters
| Param | Type | Required | Notes |
|---|---|---|---|
phones |
string[] | yes | |
channel |
string | no |
Request example
curl -X POST "https://cpaas.studio/api/whatsapp/v1/groups/WGR4K7Q2M9X/members" \
-H "X-API-KEY: cpk_xxxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{"phones":["+919876543210","9812345678"]}'
Success response (data)
{
"changed": 2,
"matched": 2,
"group": {
"uid": "WGR4K7Q2M9X",
"name": "Kerala customers",
"description": null,
"contacts_count": 1250
}
}
Need more context? See Getting started for authentication, the response envelope, and the full error-code reference.