RecomNext

Unified Recommendations API

POST /recommendations is the primary contract for all logic types. Pass a scenario slug or explicit logicType with the required seed IDs.

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.

Request body
SettingTypeDefaultDescription
scenariostringRecommended. Resolves logicType, filters, boosters, constraints.
logicTypeenumRequired if no scenario. user-to-item, item-to-item, etc.
userIdstringRequired for user-to-item and recently-viewed.
itemIdstringRequired for item-to-item and similar-products.
itemIdsstring[]Required for items-to-items.
countnumber10Capped by scenario maxItems.
countrystringOptional ISO-2 market. Missing, invalid, or OTH ranks globally. recently-viewed accepts it but ignores it for rank/cache.
returnPropertiesbooleantrueFull vs lean payload.
includedPropertiesstring[]Exact raw paths when returnProperties true.
noCachebooleanfalseSkip cache read/write.
Examples by logic type
Use case
User-to-item (homepage)
POST https://api.recomnext.com/recommendations
{
  "scenario": "homepage-for-you",
  "userId": "customer-42",
  "count": 8,
  "country": "IN"
}
Use case
Similar products (PDP)
{
  "scenario": "pdp-similar-pc",
  "itemId": "game-elden-ring",
  "count": 6,
  "returnProperties": true,
  "includedProperties": ["attributes.name", "attributes.price", "attributes.coverUrl"]
}
Use case
Cart upsell (multi-seed)
{
  "scenario": "cart-upsell",
  "itemIds": ["game-elden-ring", "game-hades"],
  "userId": "customer-42",
  "count": 6
}
Use case
Logic only (no scenario — not recommended for production)
{
  "logicType": "similar-products",
  "itemId": "game-elden-ring",
  "count": 8
}

Uses default algorithm and no placement analytics. Prefer named scenarios for production traffic.

Response
{
  "items": [
    {
      "itemId": "bundle-starter",
      "category": "pc",
      "attributes": {
        "name": "Starter Bundle",
        "price": 39.99
      },
      "score": 0.847
    }
  ],
  "count": 6,
  "algorithm": "multi-seed-co-occurrence"
}

score may be absent for some algorithms or lean modes. Guard UI access accordingly.

When scenario autoRelaxFilters is on and clauses were dropped, the response may include optional filterRelaxation (droppedClauses, effectiveFilter,droppedEntireFilter). See Scenarios — Query planning for filter auto-relax.

Authentication
SettingTypeDefaultDescription
ServerX-Api-Key or HMAC private signing.
Browser / widgetHMAC public token (publicToken).
Legacy endpoints

GET routes per logic type remain for backward compatibility. Projection on GET uses query parameters that must be included in signed URLs — see Rendering payloads guide.