---
title: "Get all nodes for a document"
method: GET
path: "/v1/documents/{id}/nodes"
tags: ["documents"]
---

# Get all nodes for a document

`GET /v1/documents/{id}/nodes`

Returns a flat list of all nodes in the document tree.

## Path parameters

- `id` string, required

## Response `200`

List of nodes

- NodeSummary[]
  - `id` string
  - `title` string
  - `summary` string — LLM-generated summary of this node
  - `depth` integer — Depth in the tree (0 = root)
  - `is_leaf` boolean — Whether this is a leaf node (no children)
  - `children_count` integer — Number of direct children

## Other responses

- `404` — Document not found
- `500` — Storage error

---

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