Listar todos os grupos
curl --request GET \
--url https://api.wppfy.com/group/list \
--header 'token: <api-key>'import requests
url = "https://api.wppfy.com/group/list"
headers = {"token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {token: '<api-key>'}};
fetch('https://api.wppfy.com/group/list', 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/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://api.wppfy.com/group/list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.wppfy.com/group/list")
.header("token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.wppfy.com/group/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"groups": [
{
"JID": "jid8@g.us",
"OwnerJID": "1232@s.whatsapp.net",
"Name": "Grupo de Suporte",
"NameSetAt": "2023-11-07T05:31:56Z",
"NameSetBy": "<string>",
"Topic": "<string>",
"IsLocked": true,
"IsAnnounce": true,
"AnnounceVersionID": "<string>",
"IsEphemeral": true,
"DisappearingTimer": 1,
"IsIncognito": true,
"IsParent": true,
"IsJoinApprovalRequired": true,
"LinkedParentJID": "<string>",
"IsDefaultSubGroup": true,
"GroupCreated": "2023-11-07T05:31:56Z",
"ParticipantVersionID": "<string>",
"Participants": [
"<unknown>"
],
"MemberAddMode": "admin_add",
"OwnerCanSendMessage": true,
"OwnerIsAdmin": true,
"DefaultSubGroupId": "<string>",
"invite_link": "<string>",
"request_participants": "<string>"
}
]
}{
"error": "<string>"
}Grupos e Comunidades
Listar todos os grupos
Retorna uma lista com todos os grupos disponíveis para a instância atual do WhatsApp.
Recursos adicionais:
- Suporta atualização forçada do cache de grupos
- Recupera informações detalhadas de grupos conectados
GET
/
group
/
list
Listar todos os grupos
curl --request GET \
--url https://api.wppfy.com/group/list \
--header 'token: <api-key>'import requests
url = "https://api.wppfy.com/group/list"
headers = {"token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {token: '<api-key>'}};
fetch('https://api.wppfy.com/group/list', 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/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://api.wppfy.com/group/list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.wppfy.com/group/list")
.header("token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.wppfy.com/group/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"groups": [
{
"JID": "jid8@g.us",
"OwnerJID": "1232@s.whatsapp.net",
"Name": "Grupo de Suporte",
"NameSetAt": "2023-11-07T05:31:56Z",
"NameSetBy": "<string>",
"Topic": "<string>",
"IsLocked": true,
"IsAnnounce": true,
"AnnounceVersionID": "<string>",
"IsEphemeral": true,
"DisappearingTimer": 1,
"IsIncognito": true,
"IsParent": true,
"IsJoinApprovalRequired": true,
"LinkedParentJID": "<string>",
"IsDefaultSubGroup": true,
"GroupCreated": "2023-11-07T05:31:56Z",
"ParticipantVersionID": "<string>",
"Participants": [
"<unknown>"
],
"MemberAddMode": "admin_add",
"OwnerCanSendMessage": true,
"OwnerIsAdmin": true,
"DefaultSubGroupId": "<string>",
"invite_link": "<string>",
"request_participants": "<string>"
}
]
}{
"error": "<string>"
}Autorizações
Parâmetros de consulta
Se definido como true, força a atualização do cache de grupos.
Útil para garantir que as informações mais recentes sejam recuperadas.
Comportamentos:
false(padrão): Usa informações em cachetrue: Busca dados atualizados diretamente do WhatsApp
Se definido como true, retorna a lista de grupos sem incluir os participantes.
Útil para otimizar a resposta quando não há necessidade dos dados dos participantes.
Comportamentos:
false(padrão): Retorna grupos com lista completa de participantestrue: Retorna grupos sem incluir os participantes
Resposta
Lista de grupos recuperada com sucesso
Lista detalhada de grupos
Show child attributes
Show child attributes
