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



## OpenAPI

````yaml /api/openapi.json get /api/v1/lessons/{lessonId}/access
openapi: 3.1.0
info:
  title: Tessera API
  version: '1'
servers:
  - url: https://tessera.edstratumlabs.ai
    description: Production
security: []
paths:
  /api/v1/lessons/{lessonId}/access:
    get:
      tags:
        - access
      operationId: getLessonAccess
      parameters:
        - name: lessonId
          in: path
          required: true
          schema:
            type: string
            minLength: 1
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessReport'
        '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:
    AccessReport:
      type: object
      properties:
        score:
          type: integer
          minimum: 0
          maximum: 100
        grade:
          type: string
          enum:
            - Perfect
            - Good
            - Moderate
            - Low
            - Very low
        issueCount:
          type: number
          minimum: 0
        bySeverity:
          type: object
          properties:
            critical:
              type: number
              minimum: 0
            serious:
              type: number
              minimum: 0
            moderate:
              type: number
              minimum: 0
            minor:
              type: number
              minimum: 0
          required:
            - critical
            - serious
            - moderate
            - minor
          additionalProperties: false
        scannedAt:
          type: string
          minLength: 1
        target:
          anyOf:
            - type: object
              properties:
                kind:
                  type: string
                  const: lesson
                lessonId:
                  type: string
                  minLength: 1
              required:
                - kind
                - lessonId
              additionalProperties: false
            - type: object
              properties:
                kind:
                  type: string
                  const: file
                fileId:
                  type: string
                  minLength: 1
                version:
                  type: integer
                  minimum: 1
                  maximum: 9007199254740991
              required:
                - kind
                - fileId
                - version
              additionalProperties: false
        issues:
          type: array
          items:
            $ref: '#/components/schemas/AccessIssue'
        document:
          anyOf:
            - type: object
              properties:
                pages:
                  type: number
                  minimum: 0
                hasText:
                  type: boolean
                images:
                  type: number
                  minimum: 0
                tagged:
                  type:
                    - boolean
                    - 'null'
              required:
                - pages
                - hasText
                - images
                - tagged
              additionalProperties: false
            - type: 'null'
      required:
        - score
        - grade
        - issueCount
        - bySeverity
        - scannedAt
        - target
        - issues
        - document
      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: {}
    AccessIssue:
      type: object
      properties:
        code:
          type: string
          minLength: 1
        severity:
          type: string
          enum:
            - critical
            - serious
            - moderate
            - minor
        wcag:
          type: object
          properties:
            sc:
              type: string
              minLength: 1
            level:
              type: string
              enum:
                - A
                - AA
                - AAA
            title:
              type: string
              minLength: 1
          required:
            - sc
            - level
            - title
          additionalProperties: false
        title:
          type: string
          minLength: 1
        description:
          type: string
        fixHint:
          type: string
        location:
          type: object
          properties:
            blockId:
              type: string
              minLength: 1
            page:
              type: number
              minimum: 0
            element:
              type: number
              minimum: 0
            label:
              type: string
          additionalProperties: false
        count:
          type: number
          minimum: 0
        fix:
          type: string
          enum:
            - alt-text
            - rewrite
            - link-text
            - table-header
            - metadata
            - captions
            - ocr
            - manual
      required:
        - code
        - severity
        - wcag
        - title
        - description
        - fixHint
        - location
        - count
        - fix
      additionalProperties: false
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Scoped tsk_… API token or Access JWT

````