Skip to content

API Reference Overview

All endpoints are rooted at https://cdp.vyg.app. Reads authenticate with a vyg_ API key (Authorization: Bearer vyg_…); key management uses a session credential; ingest is credential-free. See Authentication.

Method & pathDescription
GET /cdp/profilesList / search profiles (customers vs anonymous bucket).
GET /cdp/profiles/{id}Single profile by id.
GET /cdp/profiles/{id}/eventsProfile event history.
GET /cdp/profiles/{id}/sessionsProfile session history.
Method & pathDescription
POST /cdp/keysIssue a new key (plaintext returned once).
GET /cdp/keysList a brand’s keys (prefixes + metadata only).
POST /cdp/keys/rotateRotate: revoke active key(s) and mint a replacement.
POST /cdp/keys/revokeRevoke a key by id or prefix (idempotent).
DELETE /cdp/keysRevoke via DELETE (id / prefix in query).
Method & pathDescription
POST /cdp/segmentsDefine a scope-bound segment.
GET /cdp/segmentsList this brand’s segments.
GET /cdp/segments/{id}/membersRead segment membership (scope-gated).
Method & pathDescription
POST /cdp/ingestCredential-free browser → CDP ingest proxy.
  • Pagination: offset/pageSize envelope + opaque nextCursor. See Pagination.
  • Errors: { error, error_description? }. See Errors.
  • Scope: every read is bound to your brand’s shop. See Tenant Isolation & Scope.