---
title: "Create folder"
method: POST
path: "/files/2026-03/folders"
tags: ["Files"]
---

# Create folder

`POST /files/2026-03/folders`

## Request

- Base URL: `https://api.hubapi.com`
- URL: `https://api.hubapi.com/files/2026-03/folders`
- Auth: one of:
  - HTTP bearer
  - API key in query parameter `hapikey`
  - none

Creates a folder.

## Request body

- FilesFolderInput
  - `name` string, required: Desired name for the folder.
  - `parentFolderId` string: FolderId of the parent of the created folder. If not specified, the folder will be created at the root level. parentFolderId and parentFolderPath cannot be set at the same time.
  - `parentPath` string: Path of the parent of the created folder. If not specified the folder will be created at the root level. parentFolderPath and parentFolderId cannot be set at the same time.

## Response `201`

successful operation

- FilesFolder
  - `archived` boolean, required: Marks whether the folder is deleted or not.
  - `archivedAt` string, date-time: Timestamp of folder deletion.
  - `createdAt` string, date-time, required: Timestamp of folder creation.
  - `id` string, required: ID of the folder.
  - `name` string: Name of the folder.
  - `parentFolderId` string: ID of the parent folder.
  - `path` string: Path of the folder in the file manager.
  - `updatedAt` string, date-time, required: Timestamp of the latest update to the folder.

## Other responses

- `default`: An error occurred.

## Changes

> 14 revisions in range; 1 not diffed, 2 could not be searched.

- **2026-04-08** `b0d8bc008db9`: 1 info
  - api operation id `post-/files/2026-03/folders_create` removed and replaced with `post-/files/2026-03/folders`
- **2026-03-30** `dc2fdad57f7f`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/hubspot/apis/hubspot-api-specification/changes/files/2026-03/folders/post.md)

---

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