CDP REST APIAPI Reference
Get Profile
Fetch a single customer profile by id, scoped to your shop.
GET /cdp/profiles/{id} — fetch a single profile by id, bound to your shop scope.
Request
GET /cdp/profiles/{id}
Authorization: Bearer vyg_…Path parameters
| Param | Type | Description |
|---|---|---|
id | string | The profile itemId. |
Response 200
{
"profile": {
"itemId": "shopify_your-shop_1234",
"properties": {},
"provenance": "server"
},
"identity": {},
"scope": "your-shop.myshopify.com"
}| Field | Type | Description |
|---|---|---|
profile | object | The profile, carrying a required provenance label (server | pixel | merged). |
identity | object | Identity derived from the profile. |
scope | string | Your brand's connected shop domain. |
Example
curl -s "https://cdp.vyg.app/cdp/profiles/shopify_your-shop_1234" \
-H "Authorization: Bearer vyg_your_key_here"Errors
| Status | When |
|---|---|
400 | Missing profile id. |
401 | Missing or invalid credential. |
403 | No connected shop resolves a scope. |
404 | Profile not found or out of scope — indistinguishable by design, so a brand cannot probe for another brand's ids. |
405 | Non-GET method. |
{
"error": "not_found",
"error_description": "Profile not found"
}See Tenant Isolation & Scope for why out-of-scope ids return
404.