---
title: "List a document's sections"
method: GET
path: "/documents/{document_id}/sections"
tags: ["Documents"]
---

# List a document's sections

`GET /documents/{document_id}/sections`

## Request

- Base URL: `https://app.jitprompt.com`
- URL: `https://app.jitprompt.com/documents/{document_id}/sections`
- Auth: HTTP bearer

The sections the model made, in order: id, title, summary and token
count — and the full text with `content=true`. These are what agents read.

## Path parameters

- `document_id` string, required

## Query parameters

- `content` boolean

## Response `200`

Successful Response

- Section[]
  - `id` string, uuid, required
  - `position` integer, required
  - `title` string, required
  - `summary` string, required
  - `token_count` integer, required
  - `content` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/jitprompt/apis/jitprompt-api.md) · [All operations](https://skmtc.dev/jitprompt/apis/jitprompt-api/llms.txt) · [OpenAPI document](https://skmtc.dev/jitprompt/apis/jitprompt-api/revisions/394bd8fb9f92?raw)
