---
title: "Create a template folder"
method: POST
path: "/chats/templates/folders"
---

# Create a template folder

`POST /chats/templates/folders`

## Request

- Base URL: `https://api.fanvue.com`
- URL: `https://api.fanvue.com/chats/templates/folders`
- Auth: OAuth 2
  - Authorization code: `https://auth.fanvue.com/oauth2/auth`
  - Token URL: `https://auth.fanvue.com/oauth2/token` scopes: `write:chat`

Creates a template folder for the creator. Use the returned `uuid` as `folderUuid` when creating templates with POST /chats/templates.

## Headers

- `X-Fanvue-API-Version` string, required

## Request body

- object
  - `name` string, required: Template folder name

## Response `201`

Template folder created

- object
  - `uuid` string, uuid, required: Template folder UUID
  - `name` string, required: Template folder name

## Other responses

- `400`: Bad Request - API version not supported OR validation failed
- `401`: Unauthorized Response
- `403`: Unauthorized Response
- `409`: A folder with this name already exists
- `410`: API version no longer supported (sunset)
- `429`: Too many requests - rate limit exceeded

## Changes

- **2026-08-30** `dce5621fe589`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/fanvue/apis/fanvue-api/changes/chats/templates/folders/post.md)

---

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