curl --request GET \
--url https://api.d-api.cloud/api/v1/groups/list \
--header 'Authorization: <api-key>'import requests
url = "https://api.d-api.cloud/api/v1/groups/list"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.d-api.cloud/api/v1/groups/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.d-api.cloud/api/v1/groups/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 => [
"Authorization: <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.d-api.cloud/api/v1/groups/list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<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.d-api.cloud/api/v1/groups/list")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.d-api.cloud/api/v1/groups/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"commandId": "8f1c2a4e-1b2c-4d5e-8f90-1a2b3c4d5e6f",
"message": "Groups listed successfully",
"sessionId": "minha-sessao",
"groups": [
{
"jid": "120363000000000000@g.us",
"name": "Ofertas do dia",
"name_set_at": "2026-11-04T17:01:34-03:00",
"description": "Só ofertas",
"owner_jid": "100000000000000@lid",
"owner_phone": "5511999999999@s.whatsapp.net",
"created_at": "2026-01-27T20:46:30-03:00",
"participant_count": 2,
"participants": [
{
"jid": "100000000000000@lid",
"phone": "5511999999999@s.whatsapp.net",
"lid": "100000000000000@lid",
"is_admin": true,
"is_super_admin": true
},
{
"jid": "100000000000001@lid",
"phone": "5511988888888@s.whatsapp.net",
"lid": "100000000000001@lid",
"is_admin": false,
"is_super_admin": false
}
],
"locked": true,
"announce": true,
"profile_picture": {
"url": "https://pps.whatsapp.net/v/t61.24694-24/foto.jpg",
"id": "1643565384",
"type": "image"
},
"member_add_mode": "admin_add",
"addressing_mode": "lid",
"self_role": "superadmin"
}
],
"timestamp": "2026-11-19T22:36:29.000Z"
}{
"success": false,
"commandId": "8f1c2a4e-1b2c-4d5e-8f90-1a2b3c4d5e6f",
"error": "WhatsApp rate limit reached, retry later",
"code": "WHATSAPP_RATE_LIMITED",
"retryAfter": 30
}Listar grupos
Lista os grupos da sessão com as informações de cada um: nome, descrição, dono, data de criação, participant_count, configurações (announce, locked, member_add_mode, join_approval_required, disappearing_timer), comunidade e self_role (papel do número conectado; vem quando a lista de participantes é consultada). Toda a listagem é uma única consulta ao WhatsApp, reaproveitada por até 2 minutos. participants=true inclui os participantes com phone e lid. pictures=true inclui profile_picture: cada foto é uma consulta ao WhatsApp, feita aos poucos e guardada até a URL expirar; numa conta com muitos grupos, a primeira chamada pode trazer só parte das fotos e as demais aparecem nas seguintes. Grupo sem foto vem sem o campo. Com participants=true em contas com milhares de grupos, use offset/limit (ex.: limit=500). Limite de consultas do WhatsApp responde 429 com Retry-After. timeout em ms: padrão 30000, máximo 300000.
curl --request GET \
--url https://api.d-api.cloud/api/v1/groups/list \
--header 'Authorization: <api-key>'import requests
url = "https://api.d-api.cloud/api/v1/groups/list"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.d-api.cloud/api/v1/groups/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.d-api.cloud/api/v1/groups/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 => [
"Authorization: <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.d-api.cloud/api/v1/groups/list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<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.d-api.cloud/api/v1/groups/list")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.d-api.cloud/api/v1/groups/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"commandId": "8f1c2a4e-1b2c-4d5e-8f90-1a2b3c4d5e6f",
"message": "Groups listed successfully",
"sessionId": "minha-sessao",
"groups": [
{
"jid": "120363000000000000@g.us",
"name": "Ofertas do dia",
"name_set_at": "2026-11-04T17:01:34-03:00",
"description": "Só ofertas",
"owner_jid": "100000000000000@lid",
"owner_phone": "5511999999999@s.whatsapp.net",
"created_at": "2026-01-27T20:46:30-03:00",
"participant_count": 2,
"participants": [
{
"jid": "100000000000000@lid",
"phone": "5511999999999@s.whatsapp.net",
"lid": "100000000000000@lid",
"is_admin": true,
"is_super_admin": true
},
{
"jid": "100000000000001@lid",
"phone": "5511988888888@s.whatsapp.net",
"lid": "100000000000001@lid",
"is_admin": false,
"is_super_admin": false
}
],
"locked": true,
"announce": true,
"profile_picture": {
"url": "https://pps.whatsapp.net/v/t61.24694-24/foto.jpg",
"id": "1643565384",
"type": "image"
},
"member_add_mode": "admin_add",
"addressing_mode": "lid",
"self_role": "superadmin"
}
],
"timestamp": "2026-11-19T22:36:29.000Z"
}{
"success": false,
"commandId": "8f1c2a4e-1b2c-4d5e-8f90-1a2b3c4d5e6f",
"error": "WhatsApp rate limit reached, retry later",
"code": "WHATSAPP_RATE_LIMITED",
"retryAfter": 30
}Parâmetros de consulta
Resposta
Grupos da sessão
