Setup
- Create an API client in Console -> Security -> API Clients.
- Exchange client credentials for an access token.
- Store the token in your backend service and call
/recommendationsfrom server-side code.
Common workflows
Request recommendations for a known user
Serve recommendations for anonymous traffic
Use a temporary user identifier (for example a session-scoped UUID) inuser_id so traffic can still be tracked consistently.
Roll out by surface using context IDs
Create separate context IDs for each surface (home_feed, pdp_related, email_digest) and pass the right context_id per request so ranking logic stays predictable.
Example app journey: Home feed rollout
- Product team defines context
101for Home Feed in Console. - Backend calls
GET /recommendationswithuser_id,context_id=101, andquantity=8. - Frontend renders the top recommendations in a hero rail.
- Click/view events are submitted to
/eventsto close the feedback loop. - Analytics is reviewed daily for serve volume and engagement lift.

