POST
/api/groups/{groupJid}/participants/add
Adds participants to a specific group. Requires admin privileges in the group.
Add Group Participants
Adds participants to a specific group. Requires admin privileges in the group.
Parameters
Name | Type | Required | Description |
---|---|---|---|
groupJid | string | Yes | The JID (Jabber ID) of the group in the format 123456789-987654321@g.us. |
participants | array | Yes | Array of participant JIDs in E.164 format (international phone numbers) e.g., 1234567890. |
Code Examples
curl -X POST "https://www.wasenderapi.com/api/groups/{groupJid}/participants/add"
-H "Authorization: Bearer YOUR_API_KEY"
-H "Content-Type: application/json"
-d '{
"participants": [
"number1",
"number2"
]
}'
Response Examples
{
"success": true,
"data": [
{
"status": 200,
"jid": "123456789",
"message": "added"
},
{
"status": 403,
"jid": "participant2",
"message": "not-authorized"
}
]
}