---
title: "The page tree inside a share"
method: GET
path: "/api/share/{token}/tree"
tags: ["shares"]
---

# The page tree inside a share

`GET /api/share/{token}/tree`

## Request

- Base URL: `https://telawiki.com`
- URL: `https://telawiki.com/api/share/{token}/tree`
- Auth: none required

One entry for a single-page share; root plus descendants otherwise. Titles and structure only, no bodies.

## Response `200`

Shared pages.

- object
  - `pages` ShareTreeNode[], required
    - `id` integer, required
    - `title` string, required
    - `parent_id` integer, nullable, required
    - `position` integer, required

## Other responses

- `401`: `password_required` — this share is password-gated; call `POST /api/share/{token}/auth` first.
- `404`: `not_found`.
- `500`: `internal` — server error.

---

[API](https://skmtc.dev/telawiki/apis/tela-rest-api.md) · [All operations](https://skmtc.dev/telawiki/apis/tela-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/telawiki/apis/tela-rest-api/revisions/f316f31f6fcb?raw)
