---
title: "Create a custom folder"
method: POST
path: "/v1/domains/{domain}/mailboxes/{localPart}/folders"
tags: ["Folders"]
---

# Create a custom folder

`POST /v1/domains/{domain}/mailboxes/{localPart}/folders`

## Request

- Base URL: `https://api.usemektup.com`
- URL: `https://api.usemektup.com/v1/domains/{domain}/mailboxes/{localPart}/folders`
- Auth: HTTP bearer

## Path parameters

- `domain` string, required
- `localPart` string, required

## Request body

- object
  - `name` string, required

## Response `201`

Created

- Folder
  - `id` string, uuid
  - `name` string
  - `created_at` string, date-time

## Other responses

- `400`: Invalid request
- `404`: Not found on this account (tenant-isolated - never reveals another account's data)
- `409`: A folder with that name already exists in this mailbox

---

[API](https://skmtc.dev/usemektup/apis/mektup-api.md) · [All operations](https://skmtc.dev/usemektup/apis/mektup-api/llms.txt) · [OpenAPI document](https://skmtc.dev/usemektup/apis/mektup-api/revisions/e394b91cbc53?raw)
