Group
List groups
List groups
GET
/
group
/
list
List groups
curl --request GET \
--url http://localhost:8080/group/listimport requests
url = "http://localhost:8080/group/list"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://localhost:8080/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_PORT => "8080",
CURLOPT_URL => "http://localhost:8080/group/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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 := "http://localhost:8080/group/list"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost:8080/group/list")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8080/group/list")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": [
{
"JID": "[email protected]",
"OwnerJID": "100000000000002@lid",
"OwnerPN": "[email protected]",
"Name": "Group Name",
"NameSetAt": "2026-01-15T10:30:00-03:00",
"NameSetBy": "100000000000002@lid",
"NameSetByPN": "[email protected]",
"Topic": "",
"TopicID": "",
"TopicSetAt": "0001-01-01T00:00:00Z",
"TopicSetBy": "",
"TopicSetByPN": "",
"TopicDeleted": false,
"IsLocked": false,
"IsAnnounce": false,
"AnnounceVersionID": "1700000000000006",
"IsEphemeral": false,
"DisappearingTimer": 0,
"IsIncognito": false,
"IsParent": false,
"DefaultMembershipApprovalMode": "",
"LinkedParentJID": "",
"IsDefaultSubGroup": false,
"IsJoinApprovalRequired": false,
"AddressingMode": "lid",
"GroupCreated": "2026-01-15T10:30:00-03:00",
"CreatorCountryCode": "BR",
"ParticipantVersionID": "1700000000000007",
"Participants": [
{
"JID": "100000000000002@lid",
"PhoneNumber": "[email protected]",
"LID": "100000000000002@lid",
"IsAdmin": true,
"IsSuperAdmin": true,
"DisplayName": "",
"Error": 0,
"AddRequest": null
}
],
"ParticipantCount": 0,
"MemberAddMode": "admin_add",
"Suspended": false
}
],
"message": "success"
}{
"success": false,
"error": {
"code": "BAD_REQUEST",
"message": "Invalid request data"
},
"meta": {
"timestamp": "2024-01-15T10:30:00Z",
"path": "/group/list",
"method": "GET"
}
}{
"success": false,
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid or missing API key"
},
"meta": {
"timestamp": "2024-01-15T10:30:00Z",
"path": "/group/list",
"method": "GET"
}
}{
"success": false,
"error": {
"code": "FORBIDDEN",
"message": "Insufficient permissions to list groups"
},
"meta": {
"timestamp": "2024-01-15T10:30:00Z",
"path": "/group/list",
"method": "GET"
}
}{
"success": false,
"error": {
"code": "NOT_FOUND",
"message": "Resource not found"
},
"meta": {
"timestamp": "2024-01-15T10:30:00Z",
"path": "/group/list",
"method": "GET"
}
}{
"success": false,
"error": {
"code": "INTERNAL_SERVER_ERROR",
"message": "An unexpected error occurred"
},
"meta": {
"timestamp": "2024-01-15T10:30:00Z",
"path": "/group/list",
"method": "GET"
}
}⌘I
List groups
curl --request GET \
--url http://localhost:8080/group/listimport requests
url = "http://localhost:8080/group/list"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://localhost:8080/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_PORT => "8080",
CURLOPT_URL => "http://localhost:8080/group/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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 := "http://localhost:8080/group/list"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost:8080/group/list")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8080/group/list")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": [
{
"JID": "[email protected]",
"OwnerJID": "100000000000002@lid",
"OwnerPN": "[email protected]",
"Name": "Group Name",
"NameSetAt": "2026-01-15T10:30:00-03:00",
"NameSetBy": "100000000000002@lid",
"NameSetByPN": "[email protected]",
"Topic": "",
"TopicID": "",
"TopicSetAt": "0001-01-01T00:00:00Z",
"TopicSetBy": "",
"TopicSetByPN": "",
"TopicDeleted": false,
"IsLocked": false,
"IsAnnounce": false,
"AnnounceVersionID": "1700000000000006",
"IsEphemeral": false,
"DisappearingTimer": 0,
"IsIncognito": false,
"IsParent": false,
"DefaultMembershipApprovalMode": "",
"LinkedParentJID": "",
"IsDefaultSubGroup": false,
"IsJoinApprovalRequired": false,
"AddressingMode": "lid",
"GroupCreated": "2026-01-15T10:30:00-03:00",
"CreatorCountryCode": "BR",
"ParticipantVersionID": "1700000000000007",
"Participants": [
{
"JID": "100000000000002@lid",
"PhoneNumber": "[email protected]",
"LID": "100000000000002@lid",
"IsAdmin": true,
"IsSuperAdmin": true,
"DisplayName": "",
"Error": 0,
"AddRequest": null
}
],
"ParticipantCount": 0,
"MemberAddMode": "admin_add",
"Suspended": false
}
],
"message": "success"
}{
"success": false,
"error": {
"code": "BAD_REQUEST",
"message": "Invalid request data"
},
"meta": {
"timestamp": "2024-01-15T10:30:00Z",
"path": "/group/list",
"method": "GET"
}
}{
"success": false,
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid or missing API key"
},
"meta": {
"timestamp": "2024-01-15T10:30:00Z",
"path": "/group/list",
"method": "GET"
}
}{
"success": false,
"error": {
"code": "FORBIDDEN",
"message": "Insufficient permissions to list groups"
},
"meta": {
"timestamp": "2024-01-15T10:30:00Z",
"path": "/group/list",
"method": "GET"
}
}{
"success": false,
"error": {
"code": "NOT_FOUND",
"message": "Resource not found"
},
"meta": {
"timestamp": "2024-01-15T10:30:00Z",
"path": "/group/list",
"method": "GET"
}
}{
"success": false,
"error": {
"code": "INTERNAL_SERVER_ERROR",
"message": "An unexpected error occurred"
},
"meta": {
"timestamp": "2024-01-15T10:30:00Z",
"path": "/group/list",
"method": "GET"
}
}