WhatsApp Groups
Get a group
Returns a group with its participants and pending join requests.
GET
/
devapi
/
accounts
/
{accountId}
/
groups
/
{groupId}
Get a group
curl --request GET \
--url https://server.gallabox.com/devapi/accounts/{accountId}/groups/{groupId} \
--header 'apiKey: <api-key>' \
--header 'apiSecret: <api-key>'import requests
url = "https://server.gallabox.com/devapi/accounts/{accountId}/groups/{groupId}"
headers = {
"apiKey": "<api-key>",
"apiSecret": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {apiKey: '<api-key>', apiSecret: '<api-key>'}};
fetch('https://server.gallabox.com/devapi/accounts/{accountId}/groups/{groupId}', 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://server.gallabox.com/devapi/accounts/{accountId}/groups/{groupId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"apiKey: <api-key>",
"apiSecret: <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://server.gallabox.com/devapi/accounts/{accountId}/groups/{groupId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("apiKey", "<api-key>")
req.Header.Add("apiSecret", "<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://server.gallabox.com/devapi/accounts/{accountId}/groups/{groupId}")
.header("apiKey", "<api-key>")
.header("apiSecret", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://server.gallabox.com/devapi/accounts/{accountId}/groups/{groupId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["apiKey"] = '<api-key>'
request["apiSecret"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": "SUCCESS",
"data": {
"id": "6650a1b2c3d4e5f6a7b80700",
"channelId": "6650a1b2c3d4e5f6a7b8c9d0",
"channelType": "whatsapp",
"status": "active",
"name": "Beta testers",
"joinApprovalMode": "approval_required",
"participantCount": 12,
"createdAt": "2026-11-01T10:00:00Z",
"updatedAt": "2026-11-20T10:00:00Z",
"participants": [
{
"id": "6650a1b2c3d4e5f6a7b80701",
"contactId": "6650a1b2c3d4e5f6a7b80702",
"name": "Ravi",
"phone": "919800000001",
"role": "admin",
"status": "active",
"joinedAt": "2026-11-01T10:00:00Z"
}
],
"pendingJoinRequests": []
}
}Authorizations
Path Parameters
Query Parameters
⌘I
Get a group
curl --request GET \
--url https://server.gallabox.com/devapi/accounts/{accountId}/groups/{groupId} \
--header 'apiKey: <api-key>' \
--header 'apiSecret: <api-key>'import requests
url = "https://server.gallabox.com/devapi/accounts/{accountId}/groups/{groupId}"
headers = {
"apiKey": "<api-key>",
"apiSecret": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {apiKey: '<api-key>', apiSecret: '<api-key>'}};
fetch('https://server.gallabox.com/devapi/accounts/{accountId}/groups/{groupId}', 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://server.gallabox.com/devapi/accounts/{accountId}/groups/{groupId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"apiKey: <api-key>",
"apiSecret: <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://server.gallabox.com/devapi/accounts/{accountId}/groups/{groupId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("apiKey", "<api-key>")
req.Header.Add("apiSecret", "<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://server.gallabox.com/devapi/accounts/{accountId}/groups/{groupId}")
.header("apiKey", "<api-key>")
.header("apiSecret", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://server.gallabox.com/devapi/accounts/{accountId}/groups/{groupId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["apiKey"] = '<api-key>'
request["apiSecret"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": "SUCCESS",
"data": {
"id": "6650a1b2c3d4e5f6a7b80700",
"channelId": "6650a1b2c3d4e5f6a7b8c9d0",
"channelType": "whatsapp",
"status": "active",
"name": "Beta testers",
"joinApprovalMode": "approval_required",
"participantCount": 12,
"createdAt": "2026-11-01T10:00:00Z",
"updatedAt": "2026-11-20T10:00:00Z",
"participants": [
{
"id": "6650a1b2c3d4e5f6a7b80701",
"contactId": "6650a1b2c3d4e5f6a7b80702",
"name": "Ravi",
"phone": "919800000001",
"role": "admin",
"status": "active",
"joinedAt": "2026-11-01T10:00:00Z"
}
],
"pendingJoinRequests": []
}
}