---
title: "Create Page"
method: POST
path: "/api/pages"
tags: ["pages"]
---

# Create Page

`POST /api/pages`

## 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`
- Auth: HTTP bearer

## Request body

- PageCreate
  - `title` string
  - `root_path` string, nullable
  - `repo_url` string, nullable
  - `tags` string[], nullable
  - `type` string, nullable
  - `parent_id` string, uuid, nullable
  - `folder_id` string, uuid, nullable
  - `cwd` string, nullable

## Response `201`

Successful Response

- PageResponse
  - `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

## Other responses

- `422`: Validation Error

---

[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)
