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

# Create a folder

`POST /folders`

## Request

- Base URL: `https://freshjots.com/api/v1`
- URL: `https://freshjots.com/api/v1/folders`
- Auth: HTTP bearer

## Headers

- `Idempotency-Key` string

## Request body

- FolderBody
  - `folder` object, required
    - `name` string, required

## Response `201`

The created folder.

- Folder
  - `id` integer, required
  - `name` string, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `401`: Missing, invalid, revoked or expired bearer token (`unauthenticated`).
- `403`: The token's scope or plan does not allow this (`forbidden`).
- `404`: No such record in this token's scope (`not_found`).
- `409`: The Idempotency-Key was already used with a different body (`idempotency_key_conflict`).
- `422`: Bad input, or the plan's note cap is reached (`cap_exceeded`).
- `429`: Throttled (`rate_limited`); honour Retry-After.
- `503`: Backend temporarily unreachable; retry with backoff (`service_unavailable`).

---

[API](https://skmtc.dev/freshjots/apis/fresh-jots-api.md) · [All operations](https://skmtc.dev/freshjots/apis/fresh-jots-api/llms.txt) · [OpenAPI document](https://skmtc.dev/freshjots/apis/fresh-jots-api/revisions/2708284fa25a?raw)
