RecomNext
Use CasesFeaturesHow it WorksWhy RecomNextPricingResourcesAPI DocsLogin

Users and identity

Support anonymous visitors and logged-in customers with stable IDs across recommendations, events, and analytics. Merge anonymous session history when users authenticate.

API base URLs
Engine API base URLAdmin UI
https://api.recomnext.comhttps://admin.recomnext.com

Use the engine base URL as baseUrl in widgets and SDKs.

Anonymous vs known users
SettingTypeDefaultDescription
AnonymoussessionBrowser SDK generates sess_… in sessionStorage if no userId.
KnownuserIdYour stable account ID from auth system.
Recommendationsbothuser-to-item uses history for known users; session-scoped for anonymous.
Identity merge

On login, copy anonymous session events to the authenticated user. Call once after login — not idempotent for auto-retry.

POST https://api.recomnext.com/identity/merge
Content-Type: application/json
X-Tenant-Id: aurora-games

{
  "userId": "customer-42",
  "sessionIds": ["sess_abc123"]
}
Response
{ "merged": 12 }
recomnext.setUserId('customer-42');
await recomnext.mergeIdentity('customer-42');
User provisioning

Tenant userProvisioningModes controls automatic catalog user creation:

SettingTypeDefaultDescription
on_identity_mergemodeCreate minimal user row after merge.
on_first_known_interactionmodeCreate user on first interaction with userId.
Use case
Rich profiles from IDP

Bulk sync attributes with POST /ingestion/users when you need segments beyond auto-provisioned rows.

POST https://api.recomnext.com/ingestion/users
{
  "users": [
    { "externalId": "customer-42", "attributes": { "country": "US", "tier": "premium" } }
  ]
}
Use case
First interaction without scenarioSlug

With on_first_known_interaction provisioning, a minimal user row is created on the first interaction that includes userId — no scenarioSlug required.

POST https://api.recomnext.com/ingestion/interactions
{
  "interactions": [
    { "userId": "customer-42", "itemId": "game-elden-ring", "type": "view" }
  ]
}
Setting custom user IDs
SettingTypeDefaultDescription
REST APIuserId on POST /recommendations and ingestion payloads.
Browser SDKuserId in constructor or setUserId().
Widget HTMLdata-user-id="customer-42".
React widgetuserId prop on RecomnextCarousel.
Compliance note

Merge attaches anonymous behavioral history to a known account. User export and delete APIs are available for API-key-authenticated requests. See site privacy and DPA pages for legal terms.

Related guides
InteractionsSDK — identityWidgets — user identity