LiveRecoverVYG Developer Docs
CDP REST APIAPI Reference

Link Profile Alias

Link an external id (email, Shopify customer id, …) to a profile.

PUT /cdp/profiles/{id}/aliases/{aliasId} links an external id to a profile. The id is namespaced under your brand's scope, so two brands linking the same external id never collide and an alias can never resolve across tenants. Idempotent when the alias already links to this profile; a 409 when it already resolves to a DIFFERENT profile.

Every write is bound to your brand's shop scope. See Tenant Isolation & Scope.

Query parameters

ParameterTypeRequiredDefaultDescription
profileIdstringYesPath parameter ({id}) — the profile to link the alias to. (Not a query parameter.)
aliasIdstringYesPath parameter ({aliasId}) — the external id to link (email, Shopify customer id, …).

Response

The 200 response body:

FieldTypeDescription
profileIdstring
aliasIdstring
status'linked'
scopestringYour brand's resolved shop domain.

Errors

All errors share the standard envelope { "error": string, "error_description": string }.

StatusCodeWhen
400invalid_propertyThe aliasId is empty or contains a forbidden character.
401unauthorizedMissing or invalid API credential.
403forbiddenNo connected Shopify integration resolves a scope for the brand.
404not_foundNo such profile in your brand scope (missing or out-of-scope).
409conflictThe alias already links to a different profile in scope.
405method_not_allowedThe request used a method other than PUT.
500internal_errorAn unexpected error prevented the link.

On this page