---
title: "Get the full TOC tree for a book"
method: GET
path: "/api/books/{slug}/toc"
tags: ["toc"]
---

# Get the full TOC tree for a book

`GET /api/books/{slug}/toc`

## Request

- The document declares no server URL.
- Auth: none declared

## Path parameters

- `slug` string, required

## Response `200`

TOC tree

- TocNodeResponse[]
  - `children` TocNodeResponse[], required
  - `depth` integer, required
  - `has_content` boolean, required
  - `id` string, required
  - `label` string, required
  - `label_html` string
  - `slug` string, required
  - `sort_order` integer, required
  - `source_id` string
  - `source_node_id` string
  - `source_ref` string, required

## Other responses

- `404`: Book not found

## Changes

- **2026-05-06** `84e2c1f7ce7c`: 1 info
  - added the optional property `items/source_id` to the response with the `200` status
- **2026-04-12** `3969c73e584b`: 1 info
  - added the optional property `items/label_html` to the response with the `200` status
- **2026-04-02** `dd739b3b25f9`: 1 info
  - added the optional property `items/source_node_id` to the response with the `200` status
- **2026-04-02** `23a8b4812e75`: 2 breaking, 2 info
  - removed the required property `items/ncx_id` from the response with the `200` status
  - removed the required property `items/play_order` from the response with the `200` status
  - added the required property `items/sort_order` to the response with the `200` status
  - added the required property `items/source_ref` to the response with the `200` status

[Operation history](https://skmtc.dev/scholia-study/apis/scholia-api/changes/api/books/:slug/toc/get.md)

---

[API](https://skmtc.dev/scholia-study/apis/scholia-api.md) - [All operations](https://skmtc.dev/scholia-study/apis/scholia-api/llms.txt) - [OpenAPI document](https://skmtc.dev/scholia-study/apis/scholia-api/revisions/684b3751bfd3?raw)
