---
title: "Get tree generation progress"
method: GET
path: "/context-documents/tree/{tree_id}/progress"
tags: ["Context Documents"]
---

# Get tree generation progress

`GET /context-documents/tree/{tree_id}/progress`

Return the generation progress for a single tree.

Live phase/counter data comes from the Temporal workflow query. Terminal
trees and trees whose workflow is no longer queryable (e.g. completed
workflows that have aged out, cron-driven refreshes) return just the
DB-level status with no phase data.

## Path parameters

- `tree_id` string, required

## Response `200`

Successful Response

- TreeProgressResponse — Response shape for GET /context-documents/tree/{tree_id}/progress.
  - `tree_id` string, required
  - `status` string, required
  - `phase` string, nullable — Workflow phase. Values: discover, search, select, synthesize, finalize, personal, done. Null for terminal trees and trees whose workflow is no longer queryable.
  - `completed_docs` integer, nullable
  - `total_docs` integer, nullable

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