Validate unified profile completeness via API lookup
This task produces machine-readable proof that the unified profile is correctly assembled and accessible to external applications via the platform API. The output is a JSON response containing the merged profile record — attributes, event timeline, and segment memberships — that matches the UI profile view and can be compared against expected field values in an automated test suite. API validation is the integration test that confirms the entire pipeline (schema design → ingestion → identity stitching → profile merge) is working end-to-end, not just visible in the UI.
Why API validation differs from UI validation. The UI Profile Viewer is a presentation layer that may mask underlying issues such as namespace mismatches, missing required fields, or merge-rule conflicts. The API response exposes the raw merged record exactly as a downstream application would receive it, including the full identity graph, all attribute paths, and segment membership timestamps. Discrepancies between UI and API responses indicate merge-rule or cache-layer issues that require investigation.
Authentication and credential management. API access requires a service credential from Adobe I/O (OAuth Server-to-Server or JWT, depending on platform version). The credential issues a short-lived Bearer token. In practice, a Postman environment stores the token and auto-refreshes it using a pre-request script. External applications integrating with the Profile API must implement equivalent token management — typically via a secrets manager and a background refresh job.
Use case: real-time call-center integration. The Profile API's most operationally impactful use case is powering call-center applications that display a customer's full interaction history, loyalty status, and open service issues at the moment an inbound call is answered. Latency requirements for this use case (sub-300ms) are achievable because the profile is pre-merged and stored in a low-latency key-value store, not computed on demand. API validation exercises this exact retrieval path.
Parallel viability (moderate). Every CDP exposes an equivalent customer lookup API: Segment's Profile API, mParticle's User Lookup API, Hightouch Customer Studio profile search. The authentication pattern (OAuth2 Bearer token) and response format (JSON with a namespace-keyed identity object) are consistent across vendors. The specific field paths differ per schema implementation. Phase 3 will document the Segment Profile API equivalent.