Skip to main content

Verifying Real-Time Customer Profile lookups after ingestion

By 16Labs · Updated

Short answer: call the Profile access API (GET /data/core/ups/access/entities) with the identity you streamed and its namespace, and poll until a 200 response contains that identity. Use a synthetic identity so the check can never touch a real customer. In the 16Labs AEP Lab, the Profile lookup recipe does the polling for you.

The lookup

GET https://platform.adobe.io/data/core/ups/access/entities
    ?schema.name=_xdm.context.profile&entityId={ID}&entityIdNS={NAMESPACE}

with the standard Platform headers: Authorization, x-api-key, x-gw-ims-org-id and x-sandbox-name.

To read the experience events for the same profile, use schema.name=_xdm.context.experienceevent with relatedSchema.name=_xdm.context.profile, relatedEntityId and relatedEntityIdNS.

Why poll

Streaming ingestion is fast but not instant, and Adobe's documentation does not define what the API returns for an entity that doesn't exist yet. A robust check treats anything other than a 200 whose body contains your identity as "not there yet" and tries again with backoff, up to a timeout. That is how the AEP Lab's recipes behave.

What to assert

  • The profile exists for the identity you sent.
  • The attributes you streamed are present with the values you sent.
  • The identity graph links the identities you expect (for example, email and CRM id).
  • For events, the event appears under the profile with the right eventType and timestamp.

Related