---
title: "Simulator"
description: "Simulator"
url: "https://www.contentstack.com/docs/developers/apis/lytics-management-api/simulator"
product: "Contentstack"
doc_type: "guide"
audience:
  - developers
  - admins
version: "current"
last_updated: "2026-08-07"
---

# Simulator

## Read the Simulator enablement status

### Read the Simulator enablement status

**GET** `/projects/{id}/simulator/config`

undefined

#### URL Parameters

- **id** (required)
  Project UID

#### Headers

- **authorization** (optional)
  Bearer token for authorization
- **authtoken** (optional)
  Contentstack authtoken
- **organization_uid** (required)
  Contentstack organization UID
- **x-cs-api-version** (optional)
  API version (defaults to v1)

#### Sample Response

```json
Simulator config
```

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

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

**POST** `/projects/{id}/simulator/enable`

undefined

#### URL Parameters

- **id** (required)
  Project UID

#### Headers

- **authorization** (optional)
  Bearer token for authorization
- **authtoken** (optional)
  Contentstack authtoken
- **organization_uid** (required)
  Contentstack organization UID
- **x-cs-api-version** (optional)
  API version (defaults to v1)

#### Sample Response

```json
Simulator config, now enabled
```

## List the content collections available to the project

### List the content collections available to the project

**GET** `/projects/{id}/simulator/collections`

undefined

#### URL Parameters

- **id** (required)
  Project UID

#### Headers

- **authorization** (optional)
  Bearer token for authorization
- **authtoken** (optional)
  Contentstack authtoken
- **organization_uid** (required)
  Contentstack organization UID
- **x-cs-api-version** (optional)
  API version (defaults to v1)

#### Sample Response

```json
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

### 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

**GET** `/projects/{id}/simulator/run`

undefined

#### URL Parameters

- **id** (required)
  Project UID

#### Query Parameters

- **collectionId** (required)
  Content collection to recommend from (Lytics segment id or slug)
- **field** (optional)
  Which identity field value represents. Required, and validated against a fixed allowlist, whenever value is supplied. Ignored when value is blank or absent.
- **value** (optional)
  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

- **authorization** (optional)
  Bearer token for authorization
- **authtoken** (optional)
  Contentstack authtoken
- **organization_uid** (required)
  Contentstack organization UID
- **x-cs-api-version** (optional)
  API version (defaults to v1)

#### Sample Response

```json
Recommendation items, passed through from Lytics untouched
```