> ## 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.

# List folders



## OpenAPI

````yaml /openapi.yaml get /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:
    get:
      tags:
        - Folders
      summary: List folders
      parameters:
        - name: cursor
          in: query
          required: false
          schema:
            type: string
          example: 68b0000000000000000000a5
        - name: folder_id
          in: query
          required: false
          schema:
            type: string
          example: 68b0000000000000000000a1
          description: Return this folder's subfolders; omit for the root folders.
        - name: kind
          in: query
          required: false
          schema:
            type: string
            enum:
              - videos
              - ab_tests
          example: videos
          description: Only return folders of this kind.
        - name: per_page
          in: query
          required: false
          schema:
            type: integer
          example: 2
        - name: q
          in: query
          required: false
          schema:
            type: string
          example: acm
          description: Case-insensitive search on the folder name.
      responses:
        '200':
          description: >-
            The caller's folders for videos and A/B tests. Without folder_id,
            the root folders; with it, that folder's subfolders. kind filters by
            videos or ab_tests; q matches the name, case-insensitive. Optional
            query params: cursor + per_page page the list; the next page's URL
            comes back on the Link header.
          content:
            application/json:
              schema:
                type: object
                properties:
                  folders:
                    type: array
                    items:
                      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
                required:
                  - folders
              example:
                folders:
                  - id: 68b0000000000000000000a4
                    name: Legado
                    kind: videos
                    folder_id: null
                    created_at: '2026-07-28T12:00:00.000Z'
                    updated_at: '2026-07-28T12:00:00.000Z'
                  - id: 68b0000000000000000000a1
                    name: Clientes
                    kind: videos
                    folder_id: null
                    created_at: '2026-07-28T12:00:00.000Z'
                    updated_at: '2026-07-28T12:00:00.000Z'
        '401':
          description: Missing API credential.
          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/unauthorized
                code: unauthorized
                message: >-
                  Missing or invalid API credential. Send a vt_ token in the
                  Authorization header.
                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: kind must be videos or ab_tests.
          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: kind
                    message: must be one of videos, ab_tests
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Paste your VTurb API token (vt_...). Sent as `Authorization: Bearer
        <token>`.

````