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

# List template folders

> Retrieve a paginated list of all template folders for your team. Each folder includes a template count.



## OpenAPI

````yaml GET /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:
    get:
      tags:
        - Template Folders
      summary: List template folders
      description: >-
        Retrieve a paginated list of all template folders for your team. Each
        folder includes a template count.
      operationId: listTemplateFolders
      parameters:
        - name: search
          in: query
          description: Filter folders by name (case-insensitive partial match).
          schema:
            type: string
      responses:
        '200':
          description: A paginated list of template folders
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedTemplateFolders'
components:
  schemas:
    PaginatedTemplateFolders:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/TemplateFolder'
        links:
          $ref: '#/components/schemas/PaginationLinks'
        meta:
          $ref: '#/components/schemas/PaginationMeta'
    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'
    PaginationLinks:
      type: object
      properties:
        first:
          type:
            - string
            - 'null'
          description: URL to the first page.
          example: https://api.sendkit.dev/contacts?page=1
        last:
          type:
            - string
            - 'null'
          description: URL to the last page.
          example: https://api.sendkit.dev/contacts?page=3
        prev:
          type:
            - string
            - 'null'
          description: URL to the previous page, or null if on the first page.
          example: null
        next:
          type:
            - string
            - 'null'
          description: URL to the next page, or null if on the last page.
          example: https://api.sendkit.dev/contacts?page=2
    PaginationMeta:
      type: object
      properties:
        current_page:
          type: integer
          description: The current page number.
          example: 1
        from:
          type:
            - integer
            - 'null'
          description: The index of the first item on the current page.
          example: 1
        last_page:
          type: integer
          description: The last available page number.
          example: 3
        per_page:
          type: integer
          description: The number of items per page.
          example: 25
        to:
          type:
            - integer
            - 'null'
          description: The index of the last item on the current page.
          example: 25
        total:
          type: integer
          description: The total number of items.
          example: 75
        path:
          type: string
          description: The base URL for the paginated resource.
          example: https://api.sendkit.dev/contacts
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key from your SendKit dashboard. Pass it as a Bearer token in the
        Authorization header.

````