---
title: "Create a folder"
method: POST
path: "/folders"
tags: ["Folders"]
---

# Create a folder

`POST /folders`

## Request

- Base URL: `https://api.deepnote.com/v2`
- URL: `https://api.deepnote.com/v2/folders`
- Auth: HTTP bearer

Create a workspace folder, optionally inside another folder. Folder names are not unique, so check `GET /folders` first to avoid creating a duplicate. The new folder is listed by `GET /folders` right away, and its `id` is accepted as `folderId` by `POST /projects` and `PATCH /projects/{projectId}`.

## Request body

- CreateFolderBody
  - `name` string, required: Folder name.
  - `parentFolderId` string, uuid: Folder to create the new folder in. Omit to create it at the workspace root. Resolve a folder name to its ID via `GET /folders`.

## Response `201`

Folder created

- CreateFolderResponse
  - `folder` Folder, required
    - `id` string, uuid, required
    - `name` string, required
    - `parentFolderId` string, uuid, nullable, required: Parent folder ID, or null when the folder is at the workspace root.
    - `createdAt` string, date-time, nullable, required

## Other responses

- `400`: Validation error
- `401`: Unauthorized
- `403`: Insufficient permissions
- `404`: Parent folder not found
- `429`: Rate limit exceeded

## Changes

- **2026-10-28** `062f5f1b4638`: 1 info
  - the `folder/createdAt/anyOf[subschema #1]/` response's property pattern was changed from `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` to `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$` for the status `201`
- **2026-10-21** `29616cf5986b`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/deepnote/apis/deepnote-public-api/changes/folders/post.md)

---

[API](https://skmtc.dev/deepnote/apis/deepnote-public-api.md) - [All operations](https://skmtc.dev/deepnote/apis/deepnote-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/deepnote/apis/deepnote-public-api/revisions/b081f9aea3dc?raw)
