Skip to main content
The Platform API currently has two active versions. Build new integrations against the /v3 endpoints — /v3 is the successor to /v2. /v2 is expected to be deprecated within roughly 6 months and /v3 within roughly 9 months, with a v4 API expected in Q4. These are expectations, not committed dates — confirm timelines with your Depict contact before planning a migration deadline.
If you don’t want to use our API Client you can make the requests yourself. Recommendations are served by a single endpoint:
It replaces the three v2 endpoints /v2/recommend/products/general, /v2/recommend/products/product and /v2/recommend/products/products — the number of ids in product_ids selects the behavior. The full request/response schema is in the API Reference tab, under Platform API.

Limits and behavior

  • limit is 1–128.
  • No category parameter exists on /v3/recommend/products, and category recommendations have no v3 endpoint — see Category recommendations.
  • Valid type values are configured per merchant. Get your list from your Depict contact; an unconfigured combination returns an error (see Errors).
  • Unknown request fields are silently ignored — a misspelled field name is dropped, not rejected.
  • The response on the wire differs from the response model in the OpenAPI spec — see Response.

Request

product_ids selects which recommendations you get: Example request:

Response

On the wire the response is:
The OpenAPI spec declares a different response model for this endpoint (typed displays without variant/experiment_id). The serving code bypasses that model: what actually comes back is the shape above, with displays as untyped merchant-specific objects. Code against the wire shape documented here, not against the spec’s declared response model.

Category recommendations

POST /v2/recommend/products/category is deprecated and closed to new integrations. It remains available for its existing consumers, and its removal is aligned with the upcoming v4 recommendations launch — not with the general v2 deprecation timeline. No v3 equivalent exists today, and /v3/listings is not a substitute: it serves merchandised category browsing, which is a different contract from category recommendations.
If you have an existing integration on this endpoint: it takes a v2-shaped body (tenant, market, category_id, type) and returns the same response shape as above. Do not build new functionality on it.

Errors

  • An unconfigured merchant returns 400 with {"detail": "Merchant {merchant} not configured for recommendations."}.
  • An unconfigured (merchant, market, type) combination returns {"error": "(tenant, market, type) not yet configured. Please contact Depict."}. The message wording uses the v2 vocabulary (tenant) and may change — match on the presence of error, not on the exact message text.