---
title: "Preview available data for context document generation"
method: GET
path: "/context-documents/data-summary"
tags: ["Context Documents"]
---

# Preview available data for context document generation

`GET /context-documents/data-summary`

Show what data is available before generating a context document.

Returns per-source breakdowns with counts, date ranges, and sample
titles so callers (humans or agents) can understand what's in the
system and decide what to include.

This is the "menu" — show them what we have, let them pick.

## Response `200`

Successful Response

- DataSummaryResponse — What data is available for context document generation. This lets callers (and agents) understand what's in Hyperspell before deciding what to include. Show this in the UI so users can pick sources, or expose it to agents so they can self-select relevant data.
  - `sources` SourceSummary[], required
    - `source` string, required
    - `count` integer, required
    - `oldest` string, date-time, nullable, required
    - `newest` string, date-time, nullable, required
    - `sample_titles` string[], required
  - `total_resources` integer, required
  - `pipeline_mode` string, required

---

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