Audience summary list
curl --request GET \
--url https://dev.tryunleashx.com/api/v1/global/audience/summary-list \
--header 'token: <token>'import requests
url = "https://dev.tryunleashx.com/api/v1/global/audience/summary-list"
headers = {"token": "<token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {token: '<token>'}};
fetch('https://dev.tryunleashx.com/api/v1/global/audience/summary-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://dev.tryunleashx.com/api/v1/global/audience/summary-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: <token>"
],
]);
$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://dev.tryunleashx.com/api/v1/global/audience/summary-list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("token", "<token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://dev.tryunleashx.com/api/v1/global/audience/summary-list")
.header("token", "<token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev.tryunleashx.com/api/v1/global/audience/summary-list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["token"] = '<token>'
response = http.request(request)
puts response.read_body[
{
"id": 123,
"audience_name": "<string>",
"ID": 123,
"OBJECT_NAME": "<string>",
"variable_count": 123,
"contact_count": 123
}
]Audience
Audience Summary List
Retrieve a lightweight, unpaginated list of audiences in the workspace (id, name, variable count, contact count) for dropdowns and pickers.
GET
/
audience
/
summary-list
Audience summary list
curl --request GET \
--url https://dev.tryunleashx.com/api/v1/global/audience/summary-list \
--header 'token: <token>'import requests
url = "https://dev.tryunleashx.com/api/v1/global/audience/summary-list"
headers = {"token": "<token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {token: '<token>'}};
fetch('https://dev.tryunleashx.com/api/v1/global/audience/summary-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://dev.tryunleashx.com/api/v1/global/audience/summary-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: <token>"
],
]);
$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://dev.tryunleashx.com/api/v1/global/audience/summary-list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("token", "<token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://dev.tryunleashx.com/api/v1/global/audience/summary-list")
.header("token", "<token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev.tryunleashx.com/api/v1/global/audience/summary-list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["token"] = '<token>'
response = http.request(request)
puts response.read_body[
{
"id": 123,
"audience_name": "<string>",
"ID": 123,
"OBJECT_NAME": "<string>",
"variable_count": 123,
"contact_count": 123
}
]Use this endpoint to retrieve a lightweight, unpaginated list of audiences in the workspace — for dropdowns and pickers.
Endpoint
GET/audience/summary-list
Authentication: Required (workspace auth)
Query Parameters
None.Response
[
{
"id": 55,
"audience_name": "VIP Customers",
"ID": 55,
"OBJECT_NAME": "VIP Customers",
"variable_count": 2,
"contact_count": 320
}
]
| Field | Type | Description |
|---|---|---|
id / ID | number | Audience ID. Both keys are returned so the same response also works with generic selectdynamic picker components (which read ID/OBJECT_NAME). |
audience_name / OBJECT_NAME | string | Audience name. |
variable_count | number | Number of input variables saved on the audience. |
contact_count | number | Total contacts in the audience. |
Behavior
- Not paginated — returns every non-deleted audience in the workspace.
- Ordered by
CREATED_DATEdescending.
Example cURL
curl -X GET https://www.tryunleashx.com/api/v1/global/audience/summary-list \
-H "token: <api_key>"
Was this page helpful?
⌘I

