LiveRecoverVYG Developer Docs
CDP REST APIAPI Reference

List Property Types

Discover the profile and session property types visible to your brand — built-in platform properties plus your own.

GET /cdp/definitions/properties — the property-type catalog. Lists the profile and session property types visible to your brand, each with the exact propertyName path to use in a profilePropertyCondition / sessionPropertyCondition (see GET /cdp/definitions/conditions for the condition vocabulary).

The response is scope-filtered server-side: built-in platform property types are visible to every brand, and custom types are only ever your own brand's registered property types. Another brand's property types never appear, and properties the condition validator would reject (the tenant-isolation scope/shopDomain fields) are never listed.

Request

GET /cdp/definitions/properties
Authorization: Bearer vyg_your_api_key

No query parameters. The scope is resolved from your API credential — there is no caller-suppliable scope input on this route.

Response 200

{
	"properties": [
		{
			"id": "email",
			"propertyName": "properties.email",
			"target": "profiles",
			"type": "string",
			"multivalued": false,
			"source": "built-in",
			"name": "Email"
		},
		{
			"id": "duration",
			"propertyName": "properties.duration",
			"target": "sessions",
			"type": "integer",
			"multivalued": false,
			"source": "built-in"
		}
	],
	"scope": "your-shop.myshopify.com"
}
FieldTypeDescription
propertiesarrayThe catalog, sorted by target then id. One entry per type.
scopestringYour brand's connected shop domain.

Property-type entry

FieldTypeDescription
idstringThe registered property-type id, e.g. email.
propertyNamestringThe path to use as propertyName in a property condition, e.g. properties.email.
targetstringprofiles or sessions — which item kind the property lives on.
typestringValue type: string, integer, date, boolean, …
multivaluedbooleanWhether the property holds multiple values (compare with in / notIn).
sourcestringbuilt-in (platform property type, visible to every brand) or custom (yours only).
namestringDisplay name, when the registration carries one. Optional.
descriptionstringHuman description, when the registration carries one. Optional.

Profiles also accept ad-hoc properties: Unomi auto-creates profile properties when events set them, so a property your events send may be usable in conditions before it appears in this registry-backed catalog.

Example

curl -s "https://cdp.vyg.app/cdp/definitions/properties" \
  -H "Authorization: Bearer vyg_your_api_key"

Errors

Statuserror codeWhen
401unauthorizedMissing or invalid credential.
403forbiddenAuthenticated, but no connected integration resolves a CDP scope for this brand.
405method_not_allowedMethod other than GET / OPTIONS.
502upstream_errorThe CDP returned an error for this read.
503upstream_unavailableThe CDP timed out or was unreachable — retry.

See Errors for the full envelope.

On this page