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



## OpenAPI

````yaml /api/openapi.json get /api/v1/session
openapi: 3.1.0
info:
  title: Tessera API
  version: '1'
servers:
  - url: https://tessera.edstratumlabs.ai
    description: Production
security: []
paths:
  /api/v1/session:
    get:
      tags:
        - session
      operationId: getSession
      parameters: []
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  user:
                    anyOf:
                      - $ref: '#/components/schemas/User'
                      - type: 'null'
                  institution:
                    $ref: '#/components/schemas/Institution'
                required:
                  - user
                  - institution
                additionalProperties: false
        '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: []
components:
  schemas:
    User:
      type: object
      properties:
        id:
          type: string
          minLength: 1
        name:
          type: string
          minLength: 1
        email:
          type: string
          minLength: 1
          format: email
          pattern: >-
            ^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
        role:
          $ref: '#/components/schemas/Role'
        initials:
          type: string
          minLength: 1
        profile:
          anyOf:
            - $ref: '#/components/schemas/LearningProfile'
            - type: 'null'
      required:
        - id
        - name
        - email
        - role
        - initials
        - profile
      additionalProperties: false
    Institution:
      type: object
      properties:
        id:
          type: string
          minLength: 1
        name:
          type: string
          minLength: 1
        shortName:
          type: string
          minLength: 1
        accent:
          type: string
          enum:
            - teal
            - blue
            - plum
            - rust
        setupComplete:
          type: boolean
        policy:
          $ref: '#/components/schemas/AiPolicy'
        accessPolicy:
          $ref: '#/components/schemas/AccessPolicy'
      required:
        - id
        - name
        - shortName
        - accent
        - setupComplete
        - policy
        - accessPolicy
      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: {}
    Role:
      type: string
      enum:
        - administrator
        - instructor
        - student
    LearningProfile:
      type: object
      properties:
        goals:
          type: array
          items:
            type: string
            enum:
              - finish-degree
              - career-change
              - upskill
              - compliance
              - curiosity
        goalNote:
          type: string
        weeklyMinutes:
          type: integer
          minimum: 0
          maximum: 2400
        language:
          type: string
          minLength: 1
        readingLevel:
          type: string
          enum:
            - standard
            - plain
        accessibility:
          type: object
          properties:
            captions:
              type: boolean
            reducedMotion:
              type: boolean
            largerText:
              type: boolean
            screenReader:
              type: boolean
          required:
            - captions
            - reducedMotion
            - largerText
            - screenReader
          additionalProperties: false
        reminders:
          type: string
          enum:
            - 'off'
            - daily
            - weekly
        sessionMinutes:
          type: integer
          minimum: 5
          maximum: 240
        completedAt:
          type: string
          minLength: 1
      required:
        - goals
        - goalNote
        - weeklyMinutes
        - language
        - readingLevel
        - accessibility
        - reminders
        - completedAt
      additionalProperties: false
    AiPolicy:
      type: object
      properties:
        aiAuthoring:
          type: boolean
        tutorModes:
          type: object
          properties:
            graded:
              type: array
              items:
                $ref: '#/components/schemas/TutorMode'
            practice:
              type: array
              items:
                $ref: '#/components/schemas/TutorMode'
          required:
            - graded
            - practice
          additionalProperties: false
      required:
        - aiAuthoring
        - tutorModes
      additionalProperties: false
    AccessPolicy:
      type: object
      properties:
        minimumScore:
          type: integer
          minimum: 0
          maximum: 100
        blockingSeverities:
          type: array
          items:
            type: string
            enum:
              - critical
              - serious
              - moderate
              - minor
      required:
        - minimumScore
        - blockingSeverities
      additionalProperties: false
    TutorMode:
      type: string
      enum:
        - 'off'
        - hints
        - explain
        - open

````