---
title: "Get a context document"
method: GET
path: "/context-documents/{document_id}"
tags: ["Context Documents"]
---

# Get a context document

`GET /context-documents/{document_id}`

Get a specific context document by ID.

## Path parameters

- `document_id` string, required

## Response `200`

Successful Response

- ContextDocumentDetail
  - `document_id` string, required
  - `status` string, required
  - `sources` string[], required
  - `user_id` string, nullable, required
  - `model` string, required
  - `content` string, nullable, required
  - `prompt` string, nullable, required
  - `metadata` object, required
  - `created_at` string, date-time, required
  - `completed_at` string, date-time, nullable, required
  - `error` string, nullable, required
  - `token_usage` object, nullable, required

## Other responses

- `422` — Validation Error

---

[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)
