GET
/v1/segmentsList segments
Returns saved segments with membership counts and refresh status.
Authentication
Requires Authorization: Bearer ${API_KEY}. Create and rotate keys from the TrackLayer dashboard.
Response schema · 200
{
"segments": [
{
"id": "seg_123",
"name": "Recent purchasers",
"count": 1204
}
]
}Response example
{
"segments": [
{
"id": "seg_123",
"name": "Recent purchasers",
"count": 1204
}
]
}Code examples
curl https://api.tracklayer.com/v1/segments \
-H "Authorization: Bearer ${API_KEY}"Try it out
Use the dashboard to create an API key, then run one of the examples above with TRACKLAYER_API_KEY set in your environment.