Manage group participants
curl --request POST \
--url https://api.wppfy.com/group/updateParticipants \
--header 'Content-Type: application/json' \
--header 'token: <api-key>' \
--data '
{
"groupjid": "120363308883996631@g.us",
"action": "promote",
"participants": [
"5521987654321",
"5511999887766"
]
}
'import requests
url = "https://api.wppfy.com/group/updateParticipants"
payload = {
"groupjid": "120363308883996631@g.us",
"action": "promote",
"participants": ["5521987654321", "5511999887766"]
}
headers = {
"token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {token: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
groupjid: '120363308883996631@g.us',
action: 'promote',
participants: ['5521987654321', '5511999887766']
})
};
fetch('https://api.wppfy.com/group/updateParticipants', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.wppfy.com/group/updateParticipants",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'groupjid' => '120363308883996631@g.us',
'action' => 'promote',
'participants' => [
'5521987654321',
'5511999887766'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.wppfy.com/group/updateParticipants"
payload := strings.NewReader("{\n \"groupjid\": \"120363308883996631@g.us\",\n \"action\": \"promote\",\n \"participants\": [\n \"5521987654321\",\n \"5511999887766\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.wppfy.com/group/updateParticipants")
.header("token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"groupjid\": \"120363308883996631@g.us\",\n \"action\": \"promote\",\n \"participants\": [\n \"5521987654321\",\n \"5511999887766\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.wppfy.com/group/updateParticipants")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"groupjid\": \"120363308883996631@g.us\",\n \"action\": \"promote\",\n \"participants\": [\n \"5521987654321\",\n \"5511999887766\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"groupUpdated": [
{
"JID": "5521987654321@s.whatsapp.net",
"Error": 0,
"AddRequest": null
},
{
"JID": "5511999999999@s.whatsapp.net",
"Error": 403,
"AddRequest": {
"Code": "EMVH7xMeLQRQcZQg",
"Expiration": "2026-10-08T15:38:19Z"
}
}
],
"needs_refresh": true
}Groups and Communities
Manage group participants
Manages group participants through different actions:
- Add or remove participants
- Promote or demote administrators
- Approve or reject pending requests
Requires the user to be a group administrator to perform the actions.
With action: add, anyone blocked by privacy comes back in groupUpdated with Error: 403 and AddRequest. Use that code to send an individual invite (see Invite people).
POST
/
group
/
updateParticipants
Manage group participants
curl --request POST \
--url https://api.wppfy.com/group/updateParticipants \
--header 'Content-Type: application/json' \
--header 'token: <api-key>' \
--data '
{
"groupjid": "120363308883996631@g.us",
"action": "promote",
"participants": [
"5521987654321",
"5511999887766"
]
}
'import requests
url = "https://api.wppfy.com/group/updateParticipants"
payload = {
"groupjid": "120363308883996631@g.us",
"action": "promote",
"participants": ["5521987654321", "5511999887766"]
}
headers = {
"token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {token: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
groupjid: '120363308883996631@g.us',
action: 'promote',
participants: ['5521987654321', '5511999887766']
})
};
fetch('https://api.wppfy.com/group/updateParticipants', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.wppfy.com/group/updateParticipants",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'groupjid' => '120363308883996631@g.us',
'action' => 'promote',
'participants' => [
'5521987654321',
'5511999887766'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.wppfy.com/group/updateParticipants"
payload := strings.NewReader("{\n \"groupjid\": \"120363308883996631@g.us\",\n \"action\": \"promote\",\n \"participants\": [\n \"5521987654321\",\n \"5511999887766\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.wppfy.com/group/updateParticipants")
.header("token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"groupjid\": \"120363308883996631@g.us\",\n \"action\": \"promote\",\n \"participants\": [\n \"5521987654321\",\n \"5511999887766\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.wppfy.com/group/updateParticipants")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"groupjid\": \"120363308883996631@g.us\",\n \"action\": \"promote\",\n \"participants\": [\n \"5521987654321\",\n \"5511999887766\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"groupUpdated": [
{
"JID": "5521987654321@s.whatsapp.net",
"Error": 0,
"AddRequest": null
},
{
"JID": "5511999999999@s.whatsapp.net",
"Error": 403,
"AddRequest": {
"Code": "EMVH7xMeLQRQcZQg",
"Expiration": "2026-10-08T15:38:19Z"
}
}
],
"needs_refresh": true
}Authorizations
Body
application/json
Group JID (identifier)
Example:
"120363308883996631@g.us"
Action to be performed:
- add: Add participants to the group
- remove: Remove participants from the group
- promote: Promote participants to administrators
- demote: Remove administrator privileges
- approve: Approve pending join requests
- reject: Reject pending join requests
Available options:
add, remove, promote, demote, approve, reject Example:
"promote"
List of phone numbers or JIDs of the participants. For phone numbers, use international format without '+' or spaces.
Example:
["5521987654321", "5511999887766"]
