---
title: "Get Mock Data"
method: GET
path: "/v2/{workspace}/template/{template_slug}/mock_data/"
---

# Get Mock Data

`GET /v2/{workspace}/template/{template_slug}/mock_data/`

Retrieve the mock data (input payload, recipient, tenant, actor settings) for a template. Used for previewing and testing.

## Path parameters

- `workspace` string, required
- `template_slug` string, required

## Query parameters

- `mode` 'draft' | 'live'

## Response `200`

Mock data retrieved. Returns both the raw `data` (what the user configured) and the `transformed_data` (resolved values including tenant, recipient, actor properties, and batched events).

- object
  - `data` object — The raw mock data configuration set by the user.
    - `payload` object
    - `tenant_id` string, nullable
    - `is_batch` boolean
    - `batch_count` integer
    - `recipient_sub_type` 'user' | 'object'
    - `recipient_object` object, nullable
    - `recipient_distinct_id` string, nullable
    - `actor_sub_type` 'user' | 'object'
    - `actor_object` object, nullable
    - `actor_distinct_id` string, nullable
  - `transformed_data` object — Resolved data used for rendering previews - includes tenant branding, recipient/actor profiles, batched events, and preference URLs.

## Other responses

- `401` — Authentication failed
- `404` — Resource not found

---

[API](https://skmtc.dev/suprsend/apis/suprsend-api.md) · [All operations](https://skmtc.dev/suprsend/apis/suprsend-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/suprsend/suprsend-api/revisions/ea7b2f7c41a9/schema)
