List All Groups
curl --request GET \
--url https://sendazi.com/api/v1/all-groups<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sendazi.com/api/v1/all-groups",
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;
}import requests
url = "https://sendazi.com/api/v1/all-groups"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://sendazi.com/api/v1/all-groups', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.get("https://sendazi.com/api/v1/all-groups")
.asString();const url = 'https://sendazi.com/api/v1/all-groups';
const options = {method: 'GET'};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));require 'uri'
require 'net/http'
url = URI("https://sendazi.com/api/v1/all-groups")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"success": true,
"data": [
{
"id": 1,
"uuid": "ee9fb0b4-83f0-4be5-a0be-1063e05ff0b8",
"name": "VIP Customers",
"description": "High-value customers",
"contacts_count": 150
},
{
"id": 2,
"uuid": "feab58b8-df74-435e-ae09-d7dde096ff0c",
"name": "Newsletter Subscribers",
"description": "Users subscribed to our newsletter",
"contacts_count": 500
}
]
}
Groups
List All Groups
Returns all contact groups without pagination
GET
https://sendazi.com/api/v1
/
all-groups
List All Groups
curl --request GET \
--url https://sendazi.com/api/v1/all-groups<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sendazi.com/api/v1/all-groups",
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;
}import requests
url = "https://sendazi.com/api/v1/all-groups"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://sendazi.com/api/v1/all-groups', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.get("https://sendazi.com/api/v1/all-groups")
.asString();const url = 'https://sendazi.com/api/v1/all-groups';
const options = {method: 'GET'};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));require 'uri'
require 'net/http'
url = URI("https://sendazi.com/api/v1/all-groups")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"success": true,
"data": [
{
"id": 1,
"uuid": "ee9fb0b4-83f0-4be5-a0be-1063e05ff0b8",
"name": "VIP Customers",
"description": "High-value customers",
"contacts_count": 150
},
{
"id": 2,
"uuid": "feab58b8-df74-435e-ae09-d7dde096ff0c",
"name": "Newsletter Subscribers",
"description": "Users subscribed to our newsletter",
"contacts_count": 500
}
]
}
Use this endpoint when you need all groups at once, such as populating a dropdown. For large datasets, prefer the paginated
/groups endpoint.{
"success": true,
"data": [
{
"id": 1,
"uuid": "ee9fb0b4-83f0-4be5-a0be-1063e05ff0b8",
"name": "VIP Customers",
"description": "High-value customers",
"contacts_count": 150
},
{
"id": 2,
"uuid": "feab58b8-df74-435e-ae09-d7dde096ff0c",
"name": "Newsletter Subscribers",
"description": "Users subscribed to our newsletter",
"contacts_count": 500
}
]
}
Was this page helpful?
⌘I
