---
title: "ListPages"
method: POST
path: "/kythene.v1.KytheneService/ListPages"
tags: ["kythene.v1.KytheneService"]
---

# ListPages

`POST /kythene.v1.KytheneService/ListPages`

## Request

- Base URL: `https://kythene.com` (the document declares no server; this is the origin it was published from)
- URL: `https://kythene.com/kythene.v1.KytheneService/ListPages`
- Auth: none required

ListPages returns a wiki's tree - every page you can see, parent before
 child, with its path and state.

## Headers

- `Connect-Protocol-Version` 1, required: Define the version of the Connect protocol
- `Connect-Timeout-Ms` number: Define the timeout, in ms

## Request body

- KytheneV1ListPagesRequest
  - `wiki` string: wiki is the wiki to walk - its id or its slug.
  - `space` string: space optionally selects which of your spaces to act in (an id or name from list_spaces). Omit it when you belong to a single space.

## Response `200`

Success

- KytheneV1ListPagesResponse
  - `pages` KytheneV1PageSummary[]
    - `id` string
    - `title` string: title is the page's heading.
    - `path` string: path is the page's full path within its wiki, e.g. "handbook/day-one".
    - `parent` string: parent is the id of the page above it; empty for the wiki's root.
    - `depth` integer
    - `state` string: state is one of: draft, awaiting_approval, published, published_draft_changes, archived, deletion_scheduled.
    - `restricted` boolean: restricted is true when this page sits in a subtree that is fenced off to named people - you can see it, so you are one of them.

## Other responses

- `default`: Error

---

[API](https://skmtc.dev/kythene/apis/kythene-v1.md) · [All operations](https://skmtc.dev/kythene/apis/kythene-v1/llms.txt) · [OpenAPI document](https://skmtc.dev/kythene/apis/kythene-v1/revisions/5a768e642d10?raw)
