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

# Create a folder



## OpenAPI

````yaml /openapi.yaml post /v1/folders
openapi: 3.1.0
info:
  title: VTurb API
  version: v1
  description: |
    Public REST API for VTurb. Dev-first and agents-first: every documented
    response is recorded from the API's real behavior.
  contact:
    name: VTurb API
    url: https://vturb.com
servers:
  - url: https://api.vturb.com
security:
  - bearerAuth: []
paths:
  /v1/folders:
    post:
      tags:
        - Folders
      summary: Create a folder
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                kind:
                  type: string
                  description: videos (default) or ab_tests; set once, on create.
                  enum:
                    - videos
                    - ab_tests
                folder_id:
                  type:
                    - string
                    - 'null'
              required:
                - name
            example:
              name: Testes
              kind: ab_tests
              folder_id: null
      responses:
        '201':
          description: >-
            The created folder. kind (videos or ab_tests, videos when omitted)
            is set once; folder_id must be a folder of the same kind, and null
            or omitted creates it at the root.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  name:
                    type: string
                  kind:
                    type: string
                    enum:
                      - videos
                      - ab_tests
                  folder_id:
                    type:
                      - string
                      - 'null'
                  created_at:
                    type: string
                  updated_at:
                    type: string
                required:
                  - id
                  - name
                  - kind
                  - folder_id
                  - created_at
                  - updated_at
              example:
                id: 68b0000000000000000000c3
                name: Testes
                kind: ab_tests
                folder_id: null
                created_at: '2026-07-28T12:00:00.000Z'
                updated_at: '2026-07-28T12:00:00.000Z'
        '400':
          description: The body carries a field this endpoint does not accept.
          content:
            application/problem+json:
              schema:
                type: object
                properties:
                  type:
                    type: string
                  code:
                    type: string
                  message:
                    type: string
                  field:
                    type: string
                  request_id:
                    type: string
                required:
                  - type
                  - code
                  - message
                  - field
                  - request_id
              example:
                type: https://docs.vturb.com/errors/bad_request
                code: bad_request
                message: The request includes fields this endpoint does not accept.
                field: id
                request_id: 00000000-0000-0000-0000-000000000000
        '403':
          description: >-
            The credential is missing the videos or ab_tests scope this folder
            requires.
          content:
            application/problem+json:
              schema:
                type: object
                properties:
                  type:
                    type: string
                  code:
                    type: string
                  message:
                    type: string
                  request_id:
                    type: string
                required:
                  - type
                  - code
                  - message
                  - request_id
              example:
                type: https://docs.vturb.com/errors/forbidden
                code: forbidden
                message: The credential is missing the scope this action requires.
                request_id: 00000000-0000-0000-0000-000000000000
        '422':
          description: folder_id must be a folder of the same kind.
          content:
            application/problem+json:
              schema:
                type: object
                properties:
                  type:
                    type: string
                  code:
                    type: string
                  message:
                    type: string
                  request_id:
                    type: string
                  errors:
                    type: array
                    items:
                      type: object
                      properties:
                        field:
                          type: string
                        message:
                          type: string
                      required:
                        - field
                        - message
                required:
                  - type
                  - code
                  - message
                  - request_id
                  - errors
              example:
                type: https://docs.vturb.com/errors/unprocessable_content
                code: unprocessable_content
                message: The request is invalid. See errors for the fields that failed.
                request_id: 00000000-0000-0000-0000-000000000000
                errors:
                  - field: folder_id
                    message: must be a folder of the same kind
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Paste your VTurb API token (vt_...). Sent as `Authorization: Bearer
        <token>`.

````