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

# Create folder

`POST /files/2026-09/folders`

## Request

- Base URL: `https://api.hubapi.com`
- URL: `https://api.hubapi.com/files/2026-09/folders`
- Auth: OAuth 2
  - Authorization code: `https://app.hubspot.com/oauth/authorize`
  - Token URL: `https://api.hubapi.com/oauth/v1/token` scopes: `files.ui_hidden.write`

Create a new folder in the HubSpot file manager. This endpoint allows you to organize files by creating folders, which can be nested within other folders by specifying a parent folder ID or path.

## Request body

- FolderInput
  - `name` string, required: The name of the folder to be created. This is a required string property.
  - `parentFolderId` string: The ID of the parent folder under which the new folder will be created. This is an optional string field.
  - `parentPath` string: The path of the parent folder under which the new folder will be created. This is an optional string property.

## Response `201`

successful operation

- Folder
  - `archived` boolean, required: A boolean indicating whether the folder is archived.
  - `archivedAt` string, date-time: The date and time when the folder was archived, in ISO 8601 format.
  - `createdAt` string, date-time, required: The date and time when the folder was created, in ISO 8601 format.
  - `id` string, required: The unique ID for the folder, represented as a string.
  - `name` string: The name of the folder, represented as a string.
  - `parentFolderId` string: The unique identifier of the parent folder, represented as a string.
  - `path` string: The path of the folder within the file system, represented as a string.
  - `updatedAt` string, date-time, required: The date and time when the folder was last updated, in ISO 8601 format.

## Other responses

- `default`: An error occurred.

## Changes

- **2026-10-10** (2026-09) `551d24894509`: 2 info
  - api tag `Folders` added
  - api tag `Advanced` removed
- **2026-09-09** (2026-09) `6e0d1e97cb30`: 2 info
  - the security scope `files.ui_hidden.write` was added to the endpoint's security scheme `oauth2`
  - the security scope `files.write` was removed from the endpoint's security scheme `oauth2`
- **2026-09-07** (2026-09) `b2b4ca09ea8b`: 2 info
  - the security scope `files.ui_hidden.write` was added to the endpoint's security scheme `oauth2`
  - the security scope `files.write` was removed from the endpoint's security scheme `oauth2`

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

---

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