Skip to main content
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

{
  "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:
{
  "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:
{
  "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:
TokenDescriptionExample output
{{uuid}}UUID v4a1b2c3d4-5678-9abc-def0-1234567890ab
{{timestamp}}Unix timestamp (ms)1749672384921
{{date}}ISO date2026-04-11
{{time}}Time string14:23:07
{{datetime}}Date and time2026-04-11 14:23:07
{{datetimeiso}}ISO 86012026-04-11T14:23:07.000Z
{{random_id}}8-char alphanumericK7X2M9PQ
{{random(1, 100)}}Random integer in range42
{{random_float(0, 1, 2)}}Random float with precision0.73
{{random_choice("a", "b", "c")}}Random pick from optionsb