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



## OpenAPI

````yaml GET /api/v1/ops/workspaces/{workspaceId}/checklists/{templateId}
openapi: 3.1.0
info:
  title: Xenia Team API - Get Template
  version: 1.0.0
  description: Fetches one template with its steps, sections and access lists.
servers:
  - url: https://api.xenia.team
security: []
paths:
  /api/v1/ops/workspaces/{workspaceId}/checklists/{templateId}:
    get:
      tags:
        - Templates
      summary: Get Template
      description: >-
        Returns the full template: its settings, its top-level steps
        (`ChecklistItems`, ordered by `order`), its sections
        (`ChecklistSections`, each with its own `ChecklistItems`), who can use
        it (`ChecklistAccess`), who can see its submissions
        (`SubmissionAccess`), and `templateAccess` for the key's user.


        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 the user
        cannot access returns `404`, the same as one that does not exist.


        An archived template is still returned, with
        `WorkspaceChecklist.archivedAt` set.


        The ids in this response are the ones to send back in **Save Template**
        (PUT) to update a step or section in place.
      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: templateId
          in: path
          required: true
          description: >-
            UUID of the template. Any value that is not UUID-shaped returns `403
            Forbidden: API key not authorized for this route`.
          schema:
            type: string
            format: uuid
            example: 3f1c9a52-8e4b-4d27-9b6a-2a7e5c1d0f84
      responses:
        '200':
          description: >-
            Template retrieved. The example is abridged: the response carries
            every template setting (all the PATCH keys below, plus internal ids
            such as `nameSnippetId`), and each step carries every step column.
          content:
            application/json:
              example:
                data:
                  id: 3f1c9a52-8e4b-4d27-9b6a-2a7e5c1d0f84
                  name: Opening Safety Walk
                  description: Daily walk-through before the store opens
                  icon:
                    icon: Default
                    color: '#FFA681'
                  image: null
                  attachments: []
                  CreatedInWorkspaceId: cb363f7e-c52a-4478-911d-f6a6f791090e
                  isPublic: false
                  isPublished: true
                  publishedAt: '2026-11-20T14:05:40.102Z'
                  isScoring: false
                  isShowTimestamp: false
                  isConfirmBeforeSubmit: false
                  SubmissionType: BOTH
                  parentId: null
                  itemsCount: 3
                  totalLogsCount: 42
                  isActive: true
                  enableAiSummary: false
                  pdfAiSummary: false
                  emailAiSummary: false
                  templateContext: ''
                  isGeofenceRequired: false
                  geofenceMode: null
                  scoringMethodology: additive
                  overallScoreRollup: totalPoints
                  scoreDisplayMode: percentage
                  CreatedBy: 37d98201-9f3a-41fd-89b3-3be457c3f7ba
                  UpdatedBy: 37d98201-9f3a-41fd-89b3-3be457c3f7ba
                  createdAt: '2026-11-20T14:02:11.418Z'
                  updatedAt: '2026-11-22T09:31:07.551Z'
                  WorkspaceChecklist:
                    id: 6d5c4b3a-2f1e-4d0c-9b8a-7f6e5d4c3b29
                    WorkspaceId: cb363f7e-c52a-4478-911d-f6a6f791090e
                    ChecklistId: 3f1c9a52-8e4b-4d27-9b6a-2a7e5c1d0f84
                    isEditable: true
                    logsCount: 42
                    isPubliclyAccessible: false
                    isPrivateOnMobile: false
                    isRequestForm: false
                    isNameAndEmailRequired: false
                    isQREnable: false
                    archivedAt: null
                    FolderId: 5e8a7c21-3b94-4d1f-8c6e-0a2b9f4d7e13
                    scoreConfig: null
                    viewByDeductionRange: true
                    sendSubmitterEmail: false
                    sendLocationEmail: false
                    collapseSections: false
                  Creator:
                    id: 37d98201-9f3a-41fd-89b3-3be457c3f7ba
                    firstName: Dana
                    lastName: Reyes
                  ChecklistItems:
                    - id: c1d2e3f4-a5b6-4c7d-8e9f-0a1b2c3d4e51
                      type: passFail
                      description: Fire exits are clear and unobstructed
                      unit: null
                      order: 0
                      score: null
                      options:
                        - type: success
                          label: Pass
                          value: pass
                        - type: error
                          label: Fail
                          value: fail
                        - type: info
                          label: N/A
                          value: na
                      attachments: []
                      isImageOrNoteRequired: false
                      required: true
                      info: null
                      ParentId: null
                      RelatedAutomationId: null
                      WorkspaceId: cb363f7e-c52a-4478-911d-f6a6f791090e
                      ChecklistId: 3f1c9a52-8e4b-4d27-9b6a-2a7e5c1d0f84
                      ChecklistSectionId: null
                      ItemCategoryId: null
                      isActive: true
                      enforceRealTimeLocation: false
                      CreatedBy: 37d98201-9f3a-41fd-89b3-3be457c3f7ba
                      UpdatedBy: 37d98201-9f3a-41fd-89b3-3be457c3f7ba
                      createdAt: '2026-11-20T14:02:11.418Z'
                      updatedAt: '2026-11-20T14:02:11.418Z'
                  ChecklistSections:
                    - id: a2c4e6f8-1b3d-4f5a-8c7e-9d0b2a4c6e81
                      title: Cold storage
                      description: null
                      order: 1
                      isActive: true
                      ChecklistId: 3f1c9a52-8e4b-4d27-9b6a-2a7e5c1d0f84
                      ParentId: null
                      ParentSectionId: null
                      WorkspaceId: cb363f7e-c52a-4478-911d-f6a6f791090e
                      RelatedAutomationId: null
                      repeat: null
                      CreatedBy: 37d98201-9f3a-41fd-89b3-3be457c3f7ba
                      UpdatedBy: 37d98201-9f3a-41fd-89b3-3be457c3f7ba
                      createdAt: '2026-11-20T14:02:11.418Z'
                      updatedAt: '2026-11-20T14:02:11.418Z'
                      ChecklistItems:
                        - id: d2e3f4a5-b6c7-4d8e-9f0a-1b2c3d4e5f62
                          type: temperature
                          description: Walk-in cooler temperature
                          unit: F
                          order: 0
                          score: null
                          options: null
                          attachments: []
                          isImageOrNoteRequired: false
                          required: true
                          info: null
                          ParentId: null
                          RelatedAutomationId: null
                          WorkspaceId: cb363f7e-c52a-4478-911d-f6a6f791090e
                          ChecklistId: 3f1c9a52-8e4b-4d27-9b6a-2a7e5c1d0f84
                          ChecklistSectionId: a2c4e6f8-1b3d-4f5a-8c7e-9d0b2a4c6e81
                          ItemCategoryId: null
                          isActive: true
                          enforceRealTimeLocation: false
                          CreatedBy: 37d98201-9f3a-41fd-89b3-3be457c3f7ba
                          UpdatedBy: 37d98201-9f3a-41fd-89b3-3be457c3f7ba
                          createdAt: '2026-11-20T14:02:11.418Z'
                          updatedAt: '2026-11-20T14:02:11.418Z'
                        - id: e3f4a5b6-c7d8-4e9f-8a1b-2c3d4e5f6a73
                          type: takePhoto
                          description: Photo of the cooler display
                          unit: null
                          order: 1
                          score: null
                          options: null
                          attachments: []
                          isImageOrNoteRequired: false
                          required: false
                          info: null
                          ParentId: null
                          RelatedAutomationId: null
                          WorkspaceId: cb363f7e-c52a-4478-911d-f6a6f791090e
                          ChecklistId: 3f1c9a52-8e4b-4d27-9b6a-2a7e5c1d0f84
                          ChecklistSectionId: a2c4e6f8-1b3d-4f5a-8c7e-9d0b2a4c6e81
                          ItemCategoryId: null
                          isActive: true
                          enforceRealTimeLocation: false
                          CreatedBy: 37d98201-9f3a-41fd-89b3-3be457c3f7ba
                          UpdatedBy: 37d98201-9f3a-41fd-89b3-3be457c3f7ba
                          createdAt: '2026-11-20T14:02:11.418Z'
                          updatedAt: '2026-11-20T14:02:11.418Z'
                  ChecklistAccess:
                    - id: 0b1c2d3e-4f5a-4b6c-8d7e-9f0a1b2c3d41
                      ChecklistId: 3f1c9a52-8e4b-4d27-9b6a-2a7e5c1d0f84
                      WorkspaceId: cb363f7e-c52a-4478-911d-f6a6f791090e
                      AccessorId: 37d98201-9f3a-41fd-89b3-3be457c3f7ba
                      isEveryone: false
                      groupId: 9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c65
                      role: admin
                    - id: 1c2d3e4f-5a6b-4c7d-9e8f-0a1b2c3d4e52
                      ChecklistId: 3f1c9a52-8e4b-4d27-9b6a-2a7e5c1d0f84
                      WorkspaceId: cb363f7e-c52a-4478-911d-f6a6f791090e
                      AccessorId: null
                      isEveryone: true
                      groupId: 2d3e4f5a-6b7c-4d8e-8f9a-1b2c3d4e5f63
                      role: submitter
                  SubmissionAccess:
                    - id: 3e4f5a6b-7c8d-4e9f-9a0b-2c3d4e5f6a74
                      ChecklistId: 3f1c9a52-8e4b-4d27-9b6a-2a7e5c1d0f84
                      WorkspaceId: cb363f7e-c52a-4478-911d-f6a6f791090e
                      groupId: 4f5a6b7c-8d9e-4f0a-8b1c-3d4e5f6a7b85
                      AccessorId: 37d98201-9f3a-41fd-89b3-3be457c3f7ba
                      isEveryone: false
                      canEdit: false
                      permission: CAN_VIEW_ALL_SUBMISSIONS
                  itemCategories: []
                  templateAccess:
                    isAdmin: true
                    isSubmitter: true
                  logsCount: 42
                  isPubliclyAccessible: false
                  isNameAndEmailRequired: false
                  isQREnable: false
                  scoreConfig: null
                  viewByDeductionRange: true
                  sendSubmitterEmail: false
                  sendLocationEmail: false
                  collapseSections: false
                  canChangeScoringMethodology: false
                  scoringMethodologyLockReason: >-
                    Can't change scoring methodology — 42 submissions exist.
                    Duplicate the template instead.
                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.
        '404':
          description: >-
            Not Found - `Checklist not found!` The template does not exist in
            this workspace.
          content:
            application/json:
              example:
                error:
                  message: Checklist not found!
                  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.