LiveRecoverVYG Developer Docs
CDP REST APIAPI Reference

Export Profile (Data Portability)

Export one of your brand's profiles — its properties, events, and sessions — as JSON.

GET /cdp/profiles/{id}/export returns ONE profile’s full record — the profile document, its events, and its sessions — as a single JSON payload for GDPR data portability. This is a READ (it changes nothing), all scope-bound to your brand.

The export is synchronous and capped at 10000 events. A profile with more events returns 413 — page them instead via GET /cdp/profiles/{id}/events. (Async export jobs are out of scope.)

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

Query parameters

ParameterTypeRequiredDefaultDescription
profileIdstringYesPath parameter ({id}) — the Unomi profile id to export. (Not a query parameter.)
maxEventsnumberNo10000Query parameter (?maxEvents=) — synchronous event cap; omit for the default (10000). Over the cap returns 413.

Response

The 200 response body:

FieldTypeDescription
profileIdstring
profilestringThe profile document (itemId, properties, segments, …).
eventsstring[]The profile's event documents, scope-bound (newest first).
sessionsstring[]The profile's session documents, scope-bound.
eventCountnumberTotal in-scope event count included in the export.
status'exported'
scopestringYour brand's resolved shop domain.

Errors

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

StatusCodeWhen
400bad_requestThe maxEvents value failed validation.
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).
405method_not_allowedThe request used a method other than GET.
413payload_too_largeThe profile has more than 10000 events — page them via GET /cdp/profiles/{id}/events.
502upstream_errorThe CDP rejected the export read.
503upstream_unavailableThe CDP is temporarily unavailable — retry.
500internal_errorAn unexpected error prevented the export.

On this page