---
title: "Get Scaffold Sample Data"
method: GET
path: "/v1/public/templates/scaffolds/{template_id}/sample-data"
tags: ["Public Templates API", "Public Scaffolds"]
---

# Get Scaffold Sample Data

`GET /v1/public/templates/scaffolds/{template_id}/sample-data`

Live per-collection document counts of the scaffold's golden sample
namespace (public, no auth required).

Powers the Studio pre-clone preview: what a user actually gets when they
clone this scaffold with sample data. Counts are live-derived server-side
(cached ~10 min) because golden namespaces are not readable with normal
org keys.

## Path parameters

- `template_id` string, required — Scaffold template ID

## Response `200`

Successful Response

- ScaffoldSampleDataResponse — Live contents of a scaffold's golden sample namespace. Ground truth for the Studio pre-clone preview: golden namespaces 404 for normal org keys (they belong to the Demos org and are not the shared ``sample-data`` remap), so the counts must be server-derived. Curated copy (``whats_inside``) can lie; these counts cannot — a dark golden shows its real zeros here.
  - `template_id` string, required
  - `sample_namespace_id` string, nullable
  - `available` boolean, required — False when the scaffold has no sample namespace or it could not be read; collections/total are then empty.
  - `total_documents` integer
  - `collections` ScaffoldSampleCollection[]
    - `collection_id` string, required
    - `collection_name` string, nullable
    - `document_count` integer, required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `422` — Validation Error
- `500` — Internal Server Error

---

[API](https://skmtc.net/mixpeek/apis/mixpeek-api.md) · [All operations](https://skmtc.net/mixpeek/apis/mixpeek-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mixpeek/mixpeek-api/versions/23e05292e326/schema)
