---
title: "Service: /groups/{group}/uris/{uri}/documenttoc [GET]"
source: https://dev.pageseeder.com/api/services/get-document-toc-public-GET.html
description: "Retrieves the table of contents for a document, including its position within a publication and ancestor elements. Supports standalone documents and publication-specific TOC queries with optional version filtering."
last_updated: 2026-09-02T11:36:13+10:00
document_type: api_endpoint
operation_id: publication-GET
resource_id: publication
path_template: /groups/{group}/uris/{uri}/documenttoc
http_method: GET
api_category: publication
implementation_version: 6.2005
api_since: 5.9600
deprecated_since: null
obsolete_since: null
api_support: experimental
cache_control: null
generated_at: 2026-09-02
tokens: ~465
---

# /groups/\{group\}/uris/\{uri\}/documenttoc \[GET\]

## Description

Gets a document TOC (public).

Output the partial TOC for a publication, including a content document (request URI) and its ancestors. If URI is not in a publication, output the TOC for the URI only with no publications.

## Parameters

| Name | Description | Required | Type | Default |
| --- | --- | --- | --- | --- |
| position | The position/occurrence number of the document in the publication | no | integer | `1` |
| publicationid | The publication `ID` for the TOC, empty mean standalone. | no | publicationid |  |
| version | The publication version | no | string |  |

## Permission

This service requires no permissions but will only work on groups configured for public access and requires `publicEnable=non-member` in the [Global properties](../../guide/configuration/properties/global_properties.md).

## Response

```xml

<toc>
  ...
    [<publication ...>]
      <publication-tree uriid="55578"
                        title="Functionality"
                        content="true">
        <part level="3" uriid="55578">
          <heading-ref level="2"
                       title="Account"
                       fragment="1-2"
                       index="1"
                       numbered="true"
                       prefix="1.2.1"
                       canonical="1.2.1." />
        </part>
        <part level="3" uriid="55578">
          <heading-ref level="2"
                       title="Equations"
                       fragment="6"
                       index="1"
                       numbered="true"
                       prefix="1.2.2"
                       canonical="1.2.2." />
        </part>
      </publication-tree>
    [</publication>
    <publication .../>]
 ...
</toc>
```

## Error Handling

No specific errors expected for this service

