---
title: "Get Page Tree"
method: GET
path: "/api/pages/tree"
tags: ["pages"]
---

# Get Page Tree

`GET /api/pages/tree`

## Request

- Base URL: `https://app.ctlsurf.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.ctlsurf.com/api/pages/tree`
- Auth: HTTP bearer

Get non-deleted pages for the current user as a hierarchical tree structure.

## Response `200`

Successful Response

- PageTreeNode[]
  - `title` string
  - `root_path` string, nullable
  - `repo_url` string, nullable
  - `tags` string[]
  - `type` string
  - `id` string, uuid, required
  - `parent_id` string, uuid, nullable
  - `folder_id` string, uuid, nullable
  - `user_id` string, uuid, required
  - `order` integer
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `deleted_at` string, date-time, nullable
  - `is_project` boolean
  - `children` PageTreeNode[]

---

[API](https://skmtc.dev/ctlsurf/apis/notebook-control-plane.md) · [All operations](https://skmtc.dev/ctlsurf/apis/notebook-control-plane/llms.txt) · [OpenAPI document](https://skmtc.dev/ctlsurf/apis/notebook-control-plane/revisions/ddfbbe20d5ce?raw)
