---
title: "Get the latest context document tree"
method: GET
path: "/context-documents/tree/latest"
tags: ["Context Documents"]
---

# Get the latest context document tree

`GET /context-documents/tree/latest`

Get the most recent context document tree for the authenticated app.

The sync daemon polls this endpoint to fetch updated files.
Use ?status=published to only get published trees (daemon default).
Without a status filter, returns the latest tree of any status.

When the caller is authenticated with a user JWT (from device login),
personal docs are generated lazily on first pull and merged into the response.

## Query parameters

- `status` string, nullable

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

## Changes

- **2026-04-22** `a4bf4f3aaf15` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/hyperspell/apis/hyperspell-api/changes/context-documents/tree/latest/get.md)

---

[API](https://skmtc.dev/hyperspell/apis/hyperspell-api.md) · [All operations](https://skmtc.dev/hyperspell/apis/hyperspell-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hyperspell/hyperspell-api/revisions/69d534d74b00/schema)
