curl --request GET \
--url https://galinum.com/api/v1/audiences/capabilities \
--header 'Authorization: Bearer <token>'import requests
url = "https://galinum.com/api/v1/audiences/capabilities"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://galinum.com/api/v1/audiences/capabilities', 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://galinum.com/api/v1/audiences/capabilities",
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: Bearer <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://galinum.com/api/v1/audiences/capabilities"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <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://galinum.com/api/v1/audiences/capabilities")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://galinum.com/api/v1/audiences/capabilities")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"capabilities": {
"expression": {},
"lifecycleFields": [
{
"field": "<string>",
"type": "<string>"
}
],
"traits": [
{
"key": "<string>",
"types": {},
"users": 123,
"values": [
"<unknown>"
]
}
],
"traitsTruncated": true,
"events": [
{
"name": "<string>",
"users": 123,
"occurrences": 123,
"lastSeenAt": 123,
"properties": [
{
"key": "<string>",
"types": {}
}
],
"propertiesTruncated": true
}
],
"eventsTruncated": true
}
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Discover audience capabilities
Returns the project’s audience-authoring vocabulary in one bounded, context-efficient response: the supported expression versions, node kinds, operators per type, window units, and validation limits, plus what has actually been observed in this project — trait keys with per-type user counts, event names with user counts and recency, and top-level event property keys with observed types. Use this before authoring an expression instead of paginating raw users/events. Output is exact distinct vocabulary (not sampled); when a list is truncated by its bound the response says so via traitsTruncated / eventsTruncated / propertiesTruncated — absence from a truncated list is NOT evidence the field doesn’t exist. Low-cardinality string traits also include bounded representative values.
curl --request GET \
--url https://galinum.com/api/v1/audiences/capabilities \
--header 'Authorization: Bearer <token>'import requests
url = "https://galinum.com/api/v1/audiences/capabilities"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://galinum.com/api/v1/audiences/capabilities', 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://galinum.com/api/v1/audiences/capabilities",
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: Bearer <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://galinum.com/api/v1/audiences/capabilities"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <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://galinum.com/api/v1/audiences/capabilities")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://galinum.com/api/v1/audiences/capabilities")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"capabilities": {
"expression": {},
"lifecycleFields": [
{
"field": "<string>",
"type": "<string>"
}
],
"traits": [
{
"key": "<string>",
"types": {},
"users": 123,
"values": [
"<unknown>"
]
}
],
"traitsTruncated": true,
"events": [
{
"name": "<string>",
"users": 123,
"occurrences": 123,
"lastSeenAt": 123,
"properties": [
{
"key": "<string>",
"types": {}
}
],
"propertiesTruncated": true
}
],
"eventsTruncated": true
}
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Authorizations
Your project's secret key (pk_…, without the pub segment). Server-side only — never ship it to a browser. Get it from Settings → Projects in the dashboard.
Response
The project's audience capabilities.
Show child attributes
Show child attributes