---
title: "Service: /groups/{group}/uris/{uri}/toc [GET]"
source: https://dev.pageseeder.com/api/services/get-toc-public-GET.html
description: "Retrieves a partial table of contents for a public publication, displaying a content document and its ancestors. Supports optional parameters for publication ID, full TOC loading, and version specification."
last_updated: 2026-09-02T11:36:14+10:00
document_type: api_endpoint
operation_id: publication-GET
resource_id: publication
path_template: /groups/{group}/uris/{uri}/toc
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: ~926
---

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

## Description

Output the partial TOC for a public [publication](../../reference/glossary/publications.md) including a content document (request URI marked by `@content="true"`) and its ancestors.

> **Note:** If publicationid is not specified, then the publications for this document (that the current user can access) are ordered alphabetically by display title (then by ID) and the first publication is used.

## Parameters

| Name | Description | Required | Type | Default value |
| --- | --- | --- | --- | --- |
| publicationid | The publication `ID` for the TOC, empty mean standalone. | no | publicationid |  |
| loadall | Whether to output the entire TOC | no | boolean | `false` |
| 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="55593" title="System Report 2">
      <part level="1">
        <document-ref level="0" 
                      title="Requirements"
                      documenttype="references" 
                      uriid="55594" 
                      position="1" 
                      numbered="true"
                      prefix="1." 
                      canonical="1." 
                      children="true" />
        <part level="2" content="true">
          <document-ref level="0" 
                        title="Functionality"
                        documenttype="default" 
                        uriid="55578" 
                        position="1" 
                        numbered="true"
                        prefix="1.1" 
                        canonical="1.1." 
                        children="true" />
          <part level="3" uriid="55578">
            <heading-ref level="2"
                         title="Account" 
                         fragment="1-2"
                         index="1" 
                         numbered="true" 
                         prefix="1.1.1" 
                         canonical="1.1.1." />
            <transclusion uriid="65579" fragment="default" position="1" />
          </part>
          <part level="3" uriid="55578">
            <heading-ref level="2"
                         title="Equations"
                         fragment="1-2"
                         index="2"
                         numbered="true"
                         prefix="1.1.2"
                         canonical="1.1.2." />
          </part>
        </part>
        <part level="2">
          <document-ref level="0"
                        title="Extras"
                        documenttype="indent" 
                        uriid="55595" 
                        position="1" 
                        numbered="true"
                        prefix="1.2" 
                        canonical="1.2." />
        </part>
      </part>
      <part level="1">
        <document-ref level="0" 
                      title="Bibliography"
                      documenttype="bibliography" 
                      uriid="61110" 
                      position="1" />
      </part>
    </publication-tree>
  [</publication>
  <publication .../>]
  ...
</toc>
```

> **Note:** - `@position` is the position of the document in the publication (if the same document has been embedded or transcluded multiple times). - `@index` is the number of preceding `<heading>` or `<para>` elements in the fragment + 1.

## Error Handling

No specific errors expected for this service.

