---
title: "Create Folder"
method: POST
path: "/api/folders"
tags: ["folders"]
---

# Create Folder

`POST /api/folders`

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

Create a new folder.

## Request body

- FolderCreate
  - `name` string, required
  - `root_path` string, nullable
  - `git_remote` string, nullable
  - `hostname` string, nullable
  - `group` string, nullable

## Response `201`

Successful Response

- FolderResponse
  - `name` string, required
  - `root_path` string, nullable
  - `git_remote` string, nullable
  - `hostname` string, nullable
  - `group` string, nullable
  - `id` string, uuid, required
  - `user_id` string, uuid, required
  - `chat_logging_enabled` boolean
  - `archived_at` string, date-time, nullable
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

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