> ## Documentation Index
> Fetch the complete documentation index at: https://mockulator.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Dynamic Content

> Generate realistic, unique mock data on every request using faker.js.

Use double curly braces with any faker.js method to inject dynamic values into your responses.

Tokens are evaluated fresh on every request — your test data is always unique. The response body editor includes autocomplete suggestions, but any valid faker.js method works.

## Basic example

```handlebars theme={null}
{
  "user": {
    "id": "{{faker.string.uuid}}",
    "name": "{{faker.person.fullName}}",
    "email": "{{faker.internet.email}}",
    "company": "{{faker.company.name}}",
    "joinedDays": {{faker.number.int(1, 365)}}
  },
  "timestamp": "{{timestamp}}"
}
```

## Generating lists

Use `{{#repeat N}}...{{/repeat}}` to generate arrays of dynamic objects. JSON objects/arrays are automatically comma-separated.

Max Repeat: `1000`

**Template:**

```handlebars theme={null}
{
  "products": [
    {{#repeat 5}}
    {
      "id": "{{faker.string.uuid}}",
      "name": "{{faker.commerce.productName}}",
      "price": {{faker.commerce.price}},
      "category": "{{faker.commerce.department}}",
      "inStock": {{faker.datatype.boolean}}
    }
    {{/repeat}}
  ],
  "total": {{faker.number.int(50, 500)}},
  "timestamp": "{{timestamp}}"
}
```

**Example response:**

```json theme={null}
{
  "products": [
    {
      "id": "a1b2c3d4-5678-9abc-def0-1234567890ab",
      "name": "Handcrafted Granite Cheese",
      "price": 249.99,
      "category": "Electronics",
      "inStock": true
    },
    {
      "id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
      "name": "Rustic Cotton Pants",
      "price": 42.50,
      "category": "Clothing",
      "inStock": false
    },
    {
      "id": "6ba7b810-9dad-11d1-80b4-00c04fd430c8",
      "name": "Practical Wooden Table",
      "price": 899.00,
      "category": "Home",
      "inStock": true
    },
    {
      "id": "c9bf9e57-1685-4c89-bafb-ff5af830be8a",
      "name": "Sleek Frozen Bike",
      "price": 1299.75,
      "category": "Sports",
      "inStock": true
    },
    {
      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "name": "Licensed Soft Shirt",
      "price": 34.99,
      "category": "Grocery",
      "inStock": false
    }
  ],
  "total": 312,
  "timestamp": "1749672384921"
}
```

## Built-in tokens

In addition to faker.js methods, these shorthand tokens are available:

| Token                              | Description                 | Example output                         |
| ---------------------------------- | --------------------------- | -------------------------------------- |
| `{{uuid}}`                         | UUID v4                     | `a1b2c3d4-5678-9abc-def0-1234567890ab` |
| `{{timestamp}}`                    | Unix timestamp (ms)         | `1749672384921`                        |
| `{{date}}`                         | ISO date                    | `2026-04-11`                           |
| `{{time}}`                         | Time string                 | `14:23:07`                             |
| `{{datetime}}`                     | Date and time               | `2026-04-11 14:23:07`                  |
| `{{datetimeiso}}`                  | ISO 8601                    | `2026-04-11T14:23:07.000Z`             |
| `{{random_id}}`                    | 8-char alphanumeric         | `K7X2M9PQ`                             |
| `{{random(1, 100)}}`               | Random integer in range     | `42`                                   |
| `{{random_float(0, 1, 2)}}`        | Random float with precision | `0.73`                                 |
| `{{random_choice("a", "b", "c")}}` | Random pick from options    | `b`                                    |
