---
title: "Get a specific context document tree by tree_id"
method: GET
path: "/context-documents/tree/by-id/{tree_id}"
tags: ["Context Documents"]
---

# Get a specific context document tree by tree_id

`GET /context-documents/tree/by-id/{tree_id}`

Fetch a specific tree by its tree_id.

Skips the personal-doc lazy generation
that `/tree/latest` performs, surfacing the untouched generation
output. Useful for inspecting a specific tree by its public slug
without the daemon-delivery transformations.

## Path parameters

- `tree_id` string, required

## Response `200`

Successful Response

- TreeResponse
  - `tree_id` string, required
  - `status` string, required
  - `version` integer, required
  - `files` TreeFile[], nullable, required
    - `path` string, required
    - `content` string, required
    - `tier` string, required
    - `team` string, nullable, required
    - `updated_at` string, required
  - `error` string, nullable, required
  - `created_at` string, date-time, required
  - `completed_at` string, date-time, nullable, required
  - `meta` object, 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)
