> ## 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 apiv1lessons variants



## OpenAPI

````yaml /api/openapi.json get /api/v1/lessons/{lessonId}/variants
openapi: 3.1.0
info:
  title: Tessera API
  version: '1'
servers:
  - url: https://tessera.edstratumlabs.ai
    description: Production
security: []
paths:
  /api/v1/lessons/{lessonId}/variants:
    get:
      tags:
        - content
      operationId: listVariants
      parameters:
        - name: lessonId
          in: path
          required: true
          schema:
            type: string
            minLength: 1
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/LessonVariant'
        '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:
    LessonVariant:
      type: object
      properties:
        lessonId:
          type: string
          minLength: 1
        masterLessonId:
          type: string
          minLength: 1
        audience:
          $ref: '#/components/schemas/VariantAudience'
        title:
          type: string
          minLength: 1
        minutes:
          type: integer
          minimum: 1
          maximum: 240
        status:
          type: string
          enum:
            - draft
            - published
        syncedAt:
          type: string
          minLength: 1
        divergedBlocks:
          type: number
          minimum: 0
        uncoveredBlocks:
          type: number
          minimum: 0
      required:
        - lessonId
        - masterLessonId
        - audience
        - title
        - minutes
        - status
        - syncedAt
        - divergedBlocks
        - uncoveredBlocks
      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: {}
    VariantAudience:
      type: string
      enum:
        - plain
        - micro
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Scoped tsk_… API token or Access JWT

````