---
title: "Corpus Preview Endpoint"
method: POST
path: "/api/v1/gm/experiment/corpus-preview"
tags: ["gm", "gm"]
---

# Corpus Preview Endpoint

`POST /api/v1/gm/experiment/corpus-preview`

## Request

- Base URL: `https://app.goodleads.club` (the document declares no server; this is the origin it was published from)
- URL: `https://app.goodleads.club/api/v1/gm/experiment/corpus-preview`
- Auth: API key in header `X-API-Key`

FREE preflight: materialize a corpus spec without running anything.

Returns the item count, a small sample, and (for loaders that expose
them) selection stats — read the free data BEFORE spending vendor
credits (Tenet #7). Exactly the loader `run_experiment` would invoke,
so what you preview is what a paid run would dip.

## Request body

- CorpusPreviewRequest
  - `corpus_type` string, required
  - `corpus_spec` object, required
  - `sample_size` integer

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/goodleads/apis/formation-gtm-api.md) · [All operations](https://skmtc.dev/goodleads/apis/formation-gtm-api/llms.txt) · [OpenAPI document](https://skmtc.dev/goodleads/apis/formation-gtm-api/revisions/2068d13a82cf?raw)
