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

# Get apiv1templates



## OpenAPI

````yaml /api/openapi.json get /api/v1/templates
openapi: 3.1.0
info:
  title: Tessera API
  version: '1'
servers:
  - url: https://tessera.edstratumlabs.ai
    description: Production
security: []
paths:
  /api/v1/templates:
    get:
      tags:
        - session
      operationId: listTemplates
      parameters: []
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/CourseTemplate'
        '400':
          description: API error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorBody'
        '401':
          description: API error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorBody'
        '403':
          description: API error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorBody'
        '404':
          description: API error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorBody'
        '409':
          description: API error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorBody'
        '429':
          description: API error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorBody'
      security:
        - bearerAuth: []
components:
  schemas:
    CourseTemplate:
      type: object
      properties:
        id:
          type: string
          minLength: 1
        name:
          type: string
          minLength: 1
        description:
          type: string
        owner:
          $ref: '#/components/schemas/TemplateOwner'
        modules:
          maxItems: 20
          type: array
          items:
            $ref: '#/components/schemas/TemplateModule'
        tutorDefaults:
          type: object
          properties:
            lesson:
              $ref: '#/components/schemas/TutorMode'
            assignment:
              $ref: '#/components/schemas/TutorMode'
          required:
            - lesson
            - assignment
          additionalProperties: false
        accessFloor:
          anyOf:
            - type: integer
              minimum: 0
              maximum: 100
            - type: 'null'
        updatedBy:
          type: string
          minLength: 1
        updatedAt:
          type: string
          minLength: 1
      required:
        - id
        - name
        - description
        - owner
        - modules
        - tutorDefaults
        - accessFloor
        - updatedBy
        - updatedAt
      additionalProperties: false
    ApiErrorBody:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
              enum:
                - unauthenticated
                - forbidden
                - not-found
                - invalid
                - conflict
                - not-ready
                - ai-disabled
                - ai-failed
                - rate-limited
                - too-large
                - unsupported
            message:
              type: string
            details: {}
    TemplateOwner:
      oneOf:
        - type: object
          properties:
            kind:
              type: string
              const: institution
          required:
            - kind
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              const: program
            programId:
              type: string
              minLength: 1
          required:
            - kind
            - programId
          additionalProperties: false
    TemplateModule:
      type: object
      properties:
        key:
          type: string
          minLength: 1
          pattern: ^[a-z0-9-]{1,40}$
        title:
          type: string
          minLength: 1
        placement:
          type: string
          enum:
            - start
            - end
        objective:
          type: string
        lessons:
          maxItems: 20
          type: array
          items:
            $ref: '#/components/schemas/TemplateLesson'
      required:
        - key
        - title
        - placement
        - objective
        - lessons
      additionalProperties: false
    TutorMode:
      type: string
      enum:
        - 'off'
        - hints
        - explain
        - open
    TemplateLesson:
      type: object
      properties:
        key:
          type: string
          minLength: 1
          pattern: ^[a-z0-9-]{1,40}$
        title:
          type: string
          minLength: 1
        minutes:
          type: integer
          minimum: 1
          maximum: 240
        blocks:
          maxItems: 20
          type: array
          items:
            $ref: '#/components/schemas/TemplateBlock'
      required:
        - key
        - title
        - minutes
        - blocks
      additionalProperties: false
    TemplateBlock:
      type: object
      properties:
        key:
          type: string
          minLength: 1
          pattern: ^[a-z0-9-]{1,40}$
        label:
          type: string
          minLength: 1
        content:
          $ref: '#/components/schemas/BlockContent'
      required:
        - key
        - label
        - content
      additionalProperties: false
    BlockContent:
      oneOf:
        - type: object
          properties:
            type:
              type: string
              const: heading
            level:
              anyOf:
                - type: number
                  const: 2
                - type: number
                  const: 3
            text:
              type: string
              minLength: 1
          required:
            - type
            - level
            - text
          additionalProperties: false
        - type: object
          properties:
            type:
              type: string
              const: text
            text:
              type: string
              minLength: 1
          required:
            - type
            - text
          additionalProperties: false
        - type: object
          properties:
            type:
              type: string
              const: callout
            tone:
              type: string
              enum:
                - info
                - tip
                - warning
            title:
              type: string
            text:
              type: string
          required:
            - type
            - tone
            - title
            - text
          additionalProperties: false
        - type: object
          properties:
            type:
              type: string
              const: image
            src:
              type: string
              minLength: 1
            alt:
              type: string
            decorative:
              type: boolean
            caption:
              type: string
          required:
            - type
            - src
            - alt
            - decorative
            - caption
          additionalProperties: false
        - type: object
          properties:
            type:
              type: string
              const: check
            question:
              type: string
            options:
              minItems: 2
              maxItems: 6
              type: array
              items:
                type: object
                properties:
                  id:
                    type: string
                    minLength: 1
                  text:
                    type: string
                required:
                  - id
                  - text
                additionalProperties: false
            correctOptionId:
              type: string
            feedbackCorrect:
              type: string
            feedbackIncorrect:
              type: string
          required:
            - type
            - question
            - options
            - correctOptionId
            - feedbackCorrect
            - feedbackIncorrect
          additionalProperties: false
        - type: object
          properties:
            type:
              type: string
              const: document
            title:
              type: string
              minLength: 1
            sections:
              minItems: 1
              maxItems: 40
              type: array
              items:
                type: object
                properties:
                  heading:
                    type: string
                    minLength: 1
                  text:
                    type: string
                    minLength: 1
                required:
                  - heading
                  - text
                additionalProperties: false
          required:
            - type
            - title
            - sections
          additionalProperties: false
        - type: object
          properties:
            type:
              type: string
              const: file
            fileId:
              type: string
              minLength: 1
            title:
              type: string
              minLength: 1
            description:
              type: string
          required:
            - type
            - fileId
            - title
            - description
          additionalProperties: false
        - type: object
          properties:
            type:
              type: string
              const: video
            src:
              type: string
              minLength: 1
            provider:
              type: string
              enum:
                - youtube
                - vimeo
                - upload
            title:
              type: string
              minLength: 1
            captionsFileId:
              default: null
              anyOf:
                - type: string
                  minLength: 1
                - type: 'null'
            transcript:
              type: string
            minutes:
              default: 0
              type: integer
              minimum: 0
              maximum: 600
          required:
            - type
            - src
            - provider
            - title
            - captionsFileId
            - transcript
            - minutes
          additionalProperties: false
        - type: object
          properties:
            type:
              type: string
              const: table
            caption:
              type: string
            headerRow:
              type: boolean
            rows:
              minItems: 1
              maxItems: 200
              type: array
              items:
                minItems: 1
                maxItems: 20
                type: array
                items:
                  type: string
          required:
            - type
            - caption
            - headerRow
            - rows
          additionalProperties: false
        - type: object
          properties:
            type:
              type: string
              const: scenario
            title:
              type: string
              minLength: 1
            setting:
              type: string
            nodes:
              minItems: 1
              maxItems: 60
              type: array
              items:
                type: object
                properties:
                  id:
                    type: string
                    minLength: 1
                  text:
                    type: string
                    minLength: 1
                  choices:
                    maxItems: 6
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          minLength: 1
                        text:
                          type: string
                          minLength: 1
                        nextNodeId:
                          type: string
                          minLength: 1
                        feedback:
                          type: string
                        quality:
                          type: string
                          enum:
                            - best
                            - okay
                            - poor
                      required:
                        - id
                        - text
                        - nextNodeId
                        - feedback
                        - quality
                      additionalProperties: false
                  outcome:
                    type: string
                required:
                  - id
                  - text
                  - choices
                  - outcome
                additionalProperties: false
            startNodeId:
              type: string
              minLength: 1
          required:
            - type
            - title
            - setting
            - nodes
            - startNodeId
          additionalProperties: false
        - type: object
          properties:
            type:
              type: string
              const: link
            href:
              type: string
              minLength: 1
              pattern: ^https?:\/\/
            text:
              type: string
              minLength: 1
            description:
              type: string
          required:
            - type
            - href
            - text
            - description
          additionalProperties: false
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Scoped tsk_… API token or Access JWT

````