Skip to content

Profile Sessions

GET /cdp/profiles/{id}/sessions — read a profile’s session history. Sessions belonging to another shop are filtered out, so a profile merged across shops only surfaces this brand’s sessions.

GET /cdp/profiles/{id}/sessions
Authorization: Bearer vyg_…
ParamTypeDescription
idstringThe profile itemId.
ParamTypeDefaultDescription
limitinteger25Page size, clamped to a maximum of 100.
offsetinteger0Offset; offset + limit must stay within the 10,000-row window.
sortstringSort key.
{
"list": [{ "itemId": "ses_1", "scope": "your-shop.myshopify.com" }],
"totalSize": 1,
"offset": 0,
"pageSize": 25
}
FieldTypeDescription
listarrayThe page of sessions (only this brand’s sessions).
totalSizeintegerTotal after scope-filtering, capped at 10,000.
offsetintegerOffset this page started at.
pageSizeintegerEffective page size.
Terminal window
curl -s "https://cdp.vyg.app/cdp/profiles/shopify_your-shop_1234/sessions?limit=25" \
-H "Authorization: Bearer vyg_your_key_here"
StatusWhen
400Missing profile id, or a deep offset past the result window.
401Missing or invalid credential.
403No connected shop resolves a scope.
405Non-GET method.

See Errors for the full envelope.