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

# Get Templates

> Fetches all checklist templates for the workspace, optionally filtered by folder, archived status, and sort order.



## OpenAPI

````yaml GET /api/v1/task/checklists
openapi: 3.1.0
info:
  title: Xenia Team API - Get Templates
  version: 1.0.0
  description: API to fetch checklist templates for the workspace.
servers:
  - url: https://api.xenia.team
security: []
paths:
  /api/v1/task/checklists:
    get:
      tags:
        - Templates
      summary: Get Checklist Templates
      description: >-
        Fetches all checklist templates for the workspace, optionally filtered
        by folder, archived status, and sort order.
      parameters:
        - in: header
          name: workspace-id
          required: true
          schema:
            type: string
            format: uuid
          description: Workspace ID
        - in: query
          name: folderId
          schema:
            type: string
          required: false
          description: Folder ID to filter templates. Use 'root' for root folder.
        - in: query
          name: archived
          schema:
            type: boolean
          required: false
          description: Filter by archived templates
        - in: query
          name: orderBy
          schema:
            type: string
            enum:
              - createdAt
              - updatedAt
              - lastUsedAt
          required: false
          description: Field to order templates by
        - in: query
          name: orderDirection
          schema:
            type: string
            enum:
              - ASC
              - DESC
          required: false
          description: Order direction
      responses:
        '200':
          description: List of templates returned successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/ChecklistTemplate'
                  meta:
                    type: object
        '400':
          description: Bad Request - Invalid query parameters.
        '401':
          description: Unauthorized - Missing or invalid authentication.
        '403':
          description: Forbidden - Insufficient permissions to access templates.
        '500':
          description: Internal Server Error.
      security:
        - clientKey: []
          clientSecret: []
components:
  schemas:
    ChecklistTemplate:
      type: object
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
        description:
          type: string
        ChecklistType:
          type: object
          properties:
            id:
              type: string
              format: uuid
            name:
              type: string
            description:
              type: string
        ChecklistIndustry:
          type: object
          properties:
            id:
              type: string
              format: uuid
            name:
              type: string
        itemsCount:
          type: integer
        logsCount:
          type: integer
        isPublished:
          type: boolean
        publishedAt:
          type: string
          format: date-time
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        Creator:
          type: object
          properties:
            id:
              type: string
              format: uuid
            firstName:
              type: string
            lastName:
              type: string
        WorkspaceChecklist:
          type: object
          properties:
            workspaceId:
              type: string
              format: uuid
              description: UUID of the workspace.
            ChecklistId:
              type: string
              format: uuid
            isPubliclyAccessible:
              type: boolean
            isEditable:
              type: boolean
            FolderId:
              type:
                - string
                - 'null'
  securitySchemes:
    clientKey:
      type: apiKey
      in: header
      name: x-client-key
    clientSecret:
      type: apiKey
      in: header
      name: x-client-secret

````