Create a Group
POST /api/group/create
- Auth: Bearer Device Key
Fields
| Field | Type | Required | Notes |
|---|---|---|---|
group_name | string | ✔ | The group subject |
participants | string[] | ✔ | ≥ 1 phone number, any format |
Request
curl -X POST https://app.rapiwa.com/api/group/create \
-H "Authorization: Bearer YOUR_DEVICE_KEY" \
-H "Content-Type: application/json" \
-d '{"group_name":"Launch Team","participants":["8801234567890","8801987654321"]}'
Response
{
"success": true,
"data": {
"status": true,
"group_id": "120363000000000000@g.us",
"subject": "Launch Team",
"participants": [
{ "id": "…@lid", "phoneNumber": "8801234567890@s.whatsapp.net", "admin": "superadmin" },
{ "id": "…@lid", "phoneNumber": "8801987654321@s.whatsapp.net", "admin": null }
]
}
}
The creator (your device) is the group superadmin. Group ids are JIDs like 120363…@g.us.
Related: Add Members · Send to a Group