> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sendkit.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a template folder

> Create a new template folder. Folder names must be unique within your team.



## OpenAPI

````yaml POST /template-folders
openapi: 3.1.0
info:
  title: SendKit API
  description: The SendKit API allows you to send transactional emails programmatically.
  version: 1.0.0
servers:
  - url: https://api.sendkit.dev
security:
  - bearerAuth: []
paths:
  /template-folders:
    post:
      tags:
        - Template Folders
      summary: Create a template folder
      description: >-
        Create a new template folder. Folder names must be unique within your
        team.
      operationId: createTemplateFolder
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - name
              properties:
                name:
                  type: string
                  maxLength: 255
                  description: The folder name. Must be unique within your team.
                  example: Onboarding
      responses:
        '201':
          description: Folder created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TemplateFolder'
        '422':
          $ref: '#/components/responses/ValidationError'
components:
  schemas:
    TemplateFolder:
      type: object
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
          example: Onboarding
        templates_count:
          type: integer
          example: 3
        created_at:
          type: string
          example: '2026-03-26 10:00:00'
        updated_at:
          type: string
          example: '2026-03-26 10:00:00'
    ErrorResponse:
      type: object
      properties:
        name:
          type: string
          description: Error type identifier.
          example: validation_error
        message:
          type: string
          description: Human-readable error message.
          example: The from address domain is not verified.
  responses:
    ValidationError:
      description: Validation error — invalid or missing parameters
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            message: The email field is required.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key from your SendKit dashboard. Pass it as a Bearer token in the
        Authorization header.

````