---
title: "Retrieve a formatted table of contents for the document"
method: GET
path: "/api/document/{id}/contents"
tags: ["documents"]
---

# Retrieve a formatted table of contents for the document

`GET /api/document/{id}/contents`

Retrieve a formatted table of contents for the document, transformed via ODD

## Path parameters

- `id` string, required

## Query parameters

- `collapse` boolean
- `odd` string
- `view` 'page' | 'div' | 'single'
- `target` string
- `icons` boolean

## Headers

- `If-Modified-Since` string

## Response `200`

Returns the formatted table of contents as HTML

## Other responses

- `404` — Document not found

---

[API](https://skmtc.net/eeditiones/apis/tei-publisher-documentation-and-demo.md) · [All operations](https://skmtc.net/eeditiones/apis/tei-publisher-documentation-and-demo/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/eeditiones/tei-publisher-documentation-and-demo/revisions/07216792837f/schema)
