curl --request GET \
--url https://api.orbit.devotel.io/api/v1/cdp/attribute-distributionimport requests
url = "https://api.orbit.devotel.io/api/v1/cdp/attribute-distribution"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.orbit.devotel.io/api/v1/cdp/attribute-distribution', 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://api.orbit.devotel.io/api/v1/cdp/attribute-distribution",
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 := "https://api.orbit.devotel.io/api/v1/cdp/attribute-distribution"
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("https://api.orbit.devotel.io/api/v1/cdp/attribute-distribution")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orbit.devotel.io/api/v1/cdp/attribute-distribution")
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{
"data": {
"attribute": "lifecycle_stage",
"label": "Lifecycle stage",
"total_contacts": 48210,
"non_null": 42984,
"null_count": 5226,
"fill_rate": 0.8916,
"distinct_count": 4,
"high_cardinality": false,
"cardinality_warning": null,
"top_values": [
{
"value": "active",
"count": 21307,
"share_of_non_null": 0.4957,
"share_of_total": 0.442
},
{
"value": "trialing",
"count": 11842,
"share_of_non_null": 0.2755,
"share_of_total": 0.2456
}
],
"other_values_count": 9835,
"other_distinct_count": 2,
"top_coverage": 0.7712,
"truncated": false,
"sampled": false,
"sampling_note": null
},
"meta": {
"request_id": "req_01J8Z9K3P4Q5R6S7T8U9V0W1X2",
"timestamp": "2026-08-20T12:00:00.000Z"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"status": 123,
"details": {}
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docs_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"status": 123,
"details": {}
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docs_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"status": 123,
"details": {}
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docs_url": "<string>"
}
}{
"error": {
"code": "RATE_LIMITED",
"message": "<string>",
"status": 429,
"retry_after": 2
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docs_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"status": 123,
"details": {}
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docs_url": "<string>"
}
}Read one attribute's value distribution and cardinality snapshot
Returns a per-attribute feasibility snapshot for ONE selector (a curated column key like lifecycle_stage, or a custom trait as attributes.<key>): fill rate, distinct-value cardinality, a high-cardinality / near-unique warning, and a top-N value-frequency histogram with long-tail coverage. Query params: attribute (required) and top_n (1-100, default 20). Use it before writing segment rules to judge whether an attribute is worth faceting on. Tenants over 50k contacts are served a bounded-sample estimate flagged sampled=true. Owner / admin / developer with the contacts:read scope.
curl --request GET \
--url https://api.orbit.devotel.io/api/v1/cdp/attribute-distributionimport requests
url = "https://api.orbit.devotel.io/api/v1/cdp/attribute-distribution"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.orbit.devotel.io/api/v1/cdp/attribute-distribution', 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://api.orbit.devotel.io/api/v1/cdp/attribute-distribution",
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 := "https://api.orbit.devotel.io/api/v1/cdp/attribute-distribution"
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("https://api.orbit.devotel.io/api/v1/cdp/attribute-distribution")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orbit.devotel.io/api/v1/cdp/attribute-distribution")
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{
"data": {
"attribute": "lifecycle_stage",
"label": "Lifecycle stage",
"total_contacts": 48210,
"non_null": 42984,
"null_count": 5226,
"fill_rate": 0.8916,
"distinct_count": 4,
"high_cardinality": false,
"cardinality_warning": null,
"top_values": [
{
"value": "active",
"count": 21307,
"share_of_non_null": 0.4957,
"share_of_total": 0.442
},
{
"value": "trialing",
"count": 11842,
"share_of_non_null": 0.2755,
"share_of_total": 0.2456
}
],
"other_values_count": 9835,
"other_distinct_count": 2,
"top_coverage": 0.7712,
"truncated": false,
"sampled": false,
"sampling_note": null
},
"meta": {
"request_id": "req_01J8Z9K3P4Q5R6S7T8U9V0W1X2",
"timestamp": "2026-08-20T12:00:00.000Z"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"status": 123,
"details": {}
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docs_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"status": 123,
"details": {}
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docs_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"status": 123,
"details": {}
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docs_url": "<string>"
}
}{
"error": {
"code": "RATE_LIMITED",
"message": "<string>",
"status": 429,
"retry_after": 2
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docs_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"status": 123,
"details": {}
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docs_url": "<string>"
}
}Response
The attribute's distribution snapshot: totals, fill rate, cardinality, the top-values histogram, long-tail coverage, and any cardinality/sampling warnings.
The attribute's distribution snapshot: totals, fill rate, cardinality, the top-values histogram, long-tail coverage, and any cardinality/sampling warnings.