Skip to content

Segment Members

GET /cdp/segments/{id}/members — read a segment’s membership. The brand must own the segment; only in-scope profiles are returned, with a capped page size.

GET /cdp/segments/{id}/members
Authorization: Bearer vyg_…
ParamTypeDescription
idstringThe segment id.
ParamTypeDefaultDescription
limitinteger25Page size, clamped to a maximum of 100.
offsetinteger0Offset; offset + limit must stay within the 10,000-row window.
sortstringSort key.
{
"segmentId": "segment-scoped-id",
"list": [{ "itemId": "shopify_your-shop_1234", "properties": {} }],
"identities": {
"shopify_your-shop_1234": {}
},
"totalSize": 1,
"offset": 0,
"pageSize": 25,
"scope": "your-shop.myshopify.com"
}
FieldTypeDescription
segmentIdstringThe segment id you requested.
listarrayThe page of member profiles (only in-scope profiles).
identitiesobjectIdentity projection keyed by each profile’s itemId.
totalSizeintegerEstimated total, capped at 10,000.
offsetintegerOffset this page started at.
pageSizeintegerEffective page size.
scopestringYour brand’s connected shop domain.
Terminal window
curl -s "https://cdp.vyg.app/cdp/segments/segment-scoped-id/members?limit=25" \
-H "Authorization: Bearer vyg_your_key_here"
StatusWhen
400Missing segment id, or a deep offset past the result window.
401Missing or invalid credential.
403No connected shop resolves a scope.
405Unsupported method (use GET).

See Errors for the full envelope.