Is AI recommending you? Ask Contentstack Canoe for free
Is AI recommending your brand? Find out with Contentstack Canoe for free
Contentstack.comAcademyLogin
CS-log-dark.svgCS-log-dark.svg
  • Changelog
  • APIs
  • SDKs

Platform

  • Solution Center
  • Marketplace
  • Changelog
  • Developers & IT
  • Business users
  • Digital leaders
  • Developer Fast Track
  • Plans & Pricing

Solutions

  • Retail
  • Travel and tourism
  • Financial services
  • Technology
  • Manufacturing
  • E-commerce
  • Localization
  • Personalization
  • Portals and knowledge bases

Resources

  • Academy
  • Docs
  • Contentstack for Developers
  • Agents Start Here
  • Product updates
  • Contentstack on Contentstack
  • Blog
  • Insights and analyst reports
  • The Forrester Wave™: Digital Experience Platforms, Q4 2025
  • Webinars
  • Glossary
  • Content generative library
  • Community

Customers

  • Case Studies
  • Customer Care
  • Contentstack Experience Awards
  • Customer support

Partners

  • Overview
  • Find a partner
  • Login

Company

  • About us
  • News
  • Customer support portal
  • Contact

Social

  • Facebook
  • LinkedIn
  • Instagram
  • GitHub
  • YouTube
  • Discord
  • X
LegalTermsPrivacyTrust Center

Cookie settings

Copyright © 2026 Contentstack Inc. All rights reserved.
/
  1. Home
  2. APIs
  3. Lytics Management API
  4. Simulator

Simulator

markdownView as Markdown

Enable the recommendations Simulator for a project and preview the recommendations it returns.

Read the Simulator enablement status

GEThttps://lytics-api.contentstack.com/projects/{id}/simulator/config

undefined

Sample Response
Status|200 OK
1
Simulator config

Idempotently enable the Simulator — sets only the unsatisfied settings, and appends the given domains to the account's public allowlist

POSThttps://lytics-api.contentstack.com/projects/{id}/simulator/enable

undefined

Sample Request
12345
{
  "domains": [
    "www.example.com"
  ]
}
Sample Response
Status|200 OK
1
Simulator config, now enabled

List the content collections available to the project

GEThttps://lytics-api.contentstack.com/projects/{id}/simulator/collections

undefined

Sample Response
Status|200 OK
1
Available collections

Preview recommendations for a collection, optionally scoped to an identity — called server-side through the CDP proxy so no Lytics token is ever exposed to the browser

GEThttps://lytics-api.contentstack.com/projects/{id}/simulator/run

undefined

Sample Response
Status|200 OK
1
Recommendation items, passed through from Lytics untouched

Whether the account can recommend yet: ready, not_ready (no content-affinity model, or nothing to recommend, yet) or unknown. Cached per account.

GEThttps://lytics-api.contentstack.com/projects/{id}/simulator/readiness

undefined

Sample Response
Status|200 OK
1
Recommendation readiness
Hide Parameters

URL Parameters

idrequiredstring

Project UID

Headers

authorizationoptionalstring

Bearer token for authorization

authtokenoptionalstring

Contentstack authtoken

organization_uidrequiredstring

Contentstack organization UID

x-cs-api-versionoptionalstring

API version (defaults to v1)

Hide Parameters

URL Parameters

idrequiredstring

Project UID

Headers

authorizationoptionalstring

Bearer token for authorization

authtokenoptionalstring

Contentstack authtoken

organization_uidrequiredstring

Contentstack organization UID

x-cs-api-versionoptionalstring

API version (defaults to v1)

Body Parameters

domainsrequiredstring[]

Hostnames (or full origins) of every site that will serve the copyable recommend snippet — the customer's own domain(s), not this admin UI. At least one is required.

Hide Parameters

URL Parameters

idrequiredstring

Project UID

Headers

authorizationoptionalstring

Bearer token for authorization

authtokenoptionalstring

Contentstack authtoken

organization_uidrequiredstring

Contentstack organization UID

x-cs-api-versionoptionalstring

API version (defaults to v1)

Hide Parameters

URL Parameters

idrequiredstring

Project UID

Query Parameters

collectionIdrequiredstring

Content collection to recommend from (Lytics segment id or slug)

fieldoptionalstring

Which identity field value represents. Required, and validated against a fixed allowlist, whenever value is supplied. Ignored when value is blank or absent.

valueoptionalstring

Identity value to personalize the preview for, interpreted according to field. A blank value is treated the same as omitted, in which case field is ignored and this becomes a generic, collection-level request.

collectionIdrequiredstring

Content collection to recommend from (Lytics segment id or slug)

fieldoptionalstring

Which identity field value represents. Required, and validated against a fixed allowlist, whenever value is supplied. Ignored when value is blank or absent.

valueoptionalstring

Identity value to personalize the preview for, interpreted according to field. A blank value is treated the same as omitted, in which case field is ignored and this becomes a generic, collection-level request.

Headers

authorizationoptionalstring

Bearer token for authorization

authtokenoptionalstring

Contentstack authtoken

organization_uidrequiredstring

Contentstack organization UID

x-cs-api-versionoptionalstring

API version (defaults to v1)

Hide Parameters

URL Parameters

idrequiredstring

Project UID

Headers

authorizationoptionalstring

Bearer token for authorization

authtokenoptionalstring

Contentstack authtoken

organization_uidrequiredstring

Contentstack organization UID

x-cs-api-versionoptionalstring

API version (defaults to v1)