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

# Create Folder

`POST /drive/folders`

## Request

- Base URL: `https://api.moda.app/v1`
- URL: `https://api.moda.app/v1/drive/folders`
- Auth: HTTP bearer

Create a drive folder (team-visible; nested when ``parent_folder_id`` is set).

Name conflicts are a 409 ``folder_name_conflict`` whose ``details`` carry
``existing_folder_id`` when the caller can see the conflicting folder — an
agent re-running "create the project folder" should adopt that id rather
than invent a suffixed name.

## Headers

- `Moda-Version` '2026-04-12' | '2026-05-01'

## Request body

- FolderCreateRequest
  - `name` string, required: Folder display name (unique per location).
  - `parent_folder_id` string, nullable: Prefixed ``fld_`` wire ID (Crockford base32 body) — the canonical, recommended form. For back-compat, **a bare UUID string is also accepted** in both path parameters and JSON request bodies (older integrations that stored raw UUIDs keep working), as is **the prefix over a UUID body** (``fld_00000000-0000-4000-8000-000000000000``). All three are permanent, supported inputs; only the canonical form is ever emitted.
  - `idempotency_key` string, nullable: A retried create with the same key replays the stored result instead of failing on the name-conflict of its own earlier success. Use a fresh random key per intended create.

## Response `200`

Successful Response

- object

## Other responses

- `401`: Authentication required.
- `402`: Insufficient credits for a metered operation.
- `403`: Permission denied for this scope.
- `404`: Resource not found.
- `409`: Conflict (idempotency / resource state).
- `422`: Request validation failed.
- `429`: Rate limit exceeded.
- `500`: Internal error.

## Changes

- **2026-11-03** `9ac6a3abc0f8`: 1 info
  - endpoint added

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

---

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