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

# List Templates

> Returns every template in the workspace that the key's user can see. **Not paginated**: one call returns all matching templates. Archived templates are hidden unless you ask for them.

The key acts as its user (the key's default user, or `x-client-user`), so that user's role and template access apply. A Template Super Admin sees every template; any other user sees the published templates they have access to plus the templates they created themselves (published or not).

Rows carry template metadata, not steps. Fetch one with **Get Template** for its steps and sections.

Boolean query parameters accept `true`/`false` (or `1`/`0`); any other value is read as `false`.



## OpenAPI

````yaml GET /api/v1/ops/workspaces/{workspaceId}/checklists
openapi: 3.1.0
info:
  title: Xenia Team API - List Templates
  version: 1.0.0
  description: Lists the workspace's templates (checklists) that the key's user can see.
servers:
  - url: https://api.xenia.team
security: []
paths:
  /api/v1/ops/workspaces/{workspaceId}/checklists:
    get:
      tags:
        - Templates
      summary: List Templates
      description: >-
        Returns every template in the workspace that the key's user can see.
        **Not paginated**: one call returns all matching templates. Archived
        templates are hidden unless you ask for them.


        The key acts as its user (the key's default user, or `x-client-user`),
        so that user's role and template access apply. A Template Super Admin
        sees every template; any other user sees the published templates they
        have access to plus the templates they created themselves (published or
        not).


        Rows carry template metadata, not steps. Fetch one with **Get Template**
        for its steps and sections.


        Boolean query parameters accept `true`/`false` (or `1`/`0`); any other
        value is read as `false`.
      parameters:
        - name: workspaceId
          in: path
          required: true
          description: >-
            UUID of the workspace. Must be the workspace the API key belongs to.
            Only this workspace-in-path form is open to API keys.
          schema:
            type: string
            format: uuid
            example: cb363f7e-c52a-4478-911d-f6a6f791090e
        - name: archived
          in: query
          required: false
          description: >-
            `true` returns only archived templates. Default `false` (only active
            templates).
          schema:
            type: boolean
            default: false
        - name: includeArchived
          in: query
          required: false
          description: >-
            `true` returns active and archived templates together. Takes
            precedence over `archived`. Default `false`.
          schema:
            type: boolean
            default: false
        - name: isPublished
          in: query
          required: false
          description: >-
            `true` returns only published templates. `false` (the default)
            applies no publish filter.
          schema:
            type: boolean
            default: false
        - name: withoutApprovals
          in: query
          required: false
          description: >-
            `true` leaves out templates that have an approval workflow attached.
            Default `false`.
          schema:
            type: boolean
            default: false
        - name: userLogsCount
          in: query
          required: false
          description: >-
            `true` adds `userLogsCount` to each row: the number of that
            template's submissions last updated by the key's user. Default
            `false`.
          schema:
            type: boolean
            default: false
        - name: folderId
          in: query
          required: false
          description: >-
            A folder UUID returns only the templates in that folder. `root`
            returns only templates that are not in any of this workspace's
            folders. Any other value is ignored.
          schema:
            type: string
            example: root
        - name: orderBy
          in: query
          required: false
          description: >-
            Template field to sort by, for example `name`, `createdAt` or
            `updatedAt`. Two computed sorts are also accepted: `lastUsedAt`
            (most recent submission first) and `mostUsed` (most submissions
            first). Only applied when `orderDirection` is also sent.
          schema:
            type: string
            example: name
        - name: orderDirection
          in: query
          required: false
          description: >-
            `ASC` or `DESC` (lower case also accepted). Only applied together
            with `orderBy`. Any other value returns `422 Order direction must be
            ASC or DESC`.
          schema:
            type: string
            enum:
              - ASC
              - DESC
              - asc
              - desc
      responses:
        '200':
          description: 'Templates retrieved. `meta` is empty: the list is not paginated.'
          content:
            application/json:
              example:
                data:
                  - id: 3f1c9a52-8e4b-4d27-9b6a-2a7e5c1d0f84
                    name: Opening Safety Walk
                    nameSnippetId: null
                    description: Daily walk-through before the store opens
                    icon:
                      icon: Default
                      color: '#FFA681'
                    image: null
                    ChecklistTypeId: null
                    ChecklistIndustryId: null
                    parentId: null
                    attachments: []
                    itemsCount: 3
                    totalLogsCount: 42
                    isActive: true
                    isPublished: true
                    publishedAt: '2026-11-20T14:05:40.102Z'
                    logo: null
                    SubmissionType: BOTH
                    enableAiSummary: false
                    pdfAiSummary: false
                    emailAiSummary: false
                    templateContext: ''
                    createdAt: '2026-11-20T14:02:11.418Z'
                    updatedAt: '2026-11-22T09:31:07.551Z'
                    CreatedBy: 37d98201-9f3a-41fd-89b3-3be457c3f7ba
                    UpdatedBy: 37d98201-9f3a-41fd-89b3-3be457c3f7ba
                    Creator:
                      id: 37d98201-9f3a-41fd-89b3-3be457c3f7ba
                      firstName: Dana
                      lastName: Reyes
                    ChecklistType: null
                    ChecklistIndustry: null
                    ChecklistAccess:
                      - id: 0b1c2d3e-4f5a-4b6c-8d7e-9f0a1b2c3d41
                        AccessorId: 37d98201-9f3a-41fd-89b3-3be457c3f7ba
                        role: admin
                        isEveryone: false
                      - id: 1c2d3e4f-5a6b-4c7d-9e8f-0a1b2c3d4e52
                        AccessorId: null
                        role: submitter
                        isEveryone: true
                    WorkspaceChecklist:
                      id: 6d5c4b3a-2f1e-4d0c-9b8a-7f6e5d4c3b29
                      WorkspaceId: cb363f7e-c52a-4478-911d-f6a6f791090e
                      ChecklistId: 3f1c9a52-8e4b-4d27-9b6a-2a7e5c1d0f84
                      logsCount: 42
                      isPubliclyAccessible: false
                      isNameAndEmailRequired: false
                      isQREnable: false
                      isEditable: true
                      archivedAt: null
                      FolderId: 5e8a7c21-3b94-4d1f-8c6e-0a2b9f4d7e13
                      scoreConfig: null
                      sendSubmitterEmail: false
                      sendLocationEmail: false
                      collapseSections: false
                    templateAccess:
                      isAdmin: true
                      isSubmitter: true
                    logsCount: 42
                    isPubliclyAccessible: false
                    isNameAndEmailRequired: false
                    isQREnable: false
                    scoreConfig: null
                    sendSubmitterEmail: false
                    sendLocationEmail: false
                    collapseSections: false
                    lastSubmittedDate: '2026-11-23T07:48:12.000Z'
                    recurringFrequencies: []
                meta: {}
        '401':
          description: >-
            Unauthorized - `Invalid client credentials`, or `Client does not
            belong to this workspace` when `workspaceId` is not the key's
            workspace.
        '403':
          description: >-
            Forbidden - `API key not authorized for this route`: the path is not
            the workspace-in-path form, or `templateId` is not a UUID.
        '422':
          description: Unprocessable Entity - a query parameter failed validation.
          content:
            application/json:
              example:
                error:
                  error: 'ValidationError: Order direction must be ASC or DESC'
                  message: Order direction must be ASC or DESC
                  meta: {}
        '500':
          description: Internal Server Error.
      security:
        - clientKey: []
          clientSecret: []
components:
  securitySchemes:
    clientKey:
      type: apiKey
      in: header
      name: x-client-key
    clientSecret:
      type: apiKey
      in: header
      name: x-client-secret

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.