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

# Run deterministic learning-science audit

> Checks objectives (Mager/Bloom), quiz items (Haladyna/key-position bias), session blocks (cognitive load), and lesson outlines with zero model calls or allowance spend.



## OpenAPI

````yaml /api-reference/openapi.json post /api/v1/audit
openapi: 3.1.0
info:
  title: Enablement Studio API
  version: 1.0.0
  description: >-
    REST API v1 for Enablement Studio: inspect projects and kits, draft
    Role/Call/Critic runs, consult kit specialists, run deterministic
    learning-science audits, and publish SCORM/learner links.
  contact:
    name: Enablement Studio Support
    email: login@enablementstudio.app
    url: https://enablementstudio.ai/contact
servers:
  - url: https://enablementstudio.ai
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Discovery
    description: Server metadata, signed-in account status, and public examples.
  - name: Library
    description: Read projects, kits, full kit documents, and deliverable exports.
  - name: Runs
    description: Start asynchronous Role, Call, and Critic drafts and poll status.
  - name: Specialists
    description: Read and message specialist agents; edits wait in Kit Review.
  - name: Learning Science
    description: Deterministic Mager, Bloom, Haladyna, and cognitive-load checks.
  - name: Delivery & Practice
    description: Online lessons, SCORM 1.2 exports, learner practice links, and results.
paths:
  /api/v1/audit:
    post:
      tags:
        - Learning Science
      summary: Run deterministic learning-science audit
      description: >-
        Checks objectives (Mager/Bloom), quiz items (Haladyna/key-position
        bias), session blocks (cognitive load), and lesson outlines with zero
        model calls or allowance spend.
      operationId: auditLearningScience
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AuditRequest'
            example:
              objectives:
                - Understand refund policy.
      responses:
        '200':
          description: Structured audit findings.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuditResponse'
              example:
                objectives:
                  - statement: Understand refund policy.
                    score: 2
                    observable: false
                    level: null
                    verb: understand
                    condition: ''
                    object: refund policy
                    criterion: ''
                    reasons:
                      - >-
                        'understand' is a state of mind, not a performance an
                        observer can check — write 'explain' instead.
                    suggested_verb: explain
                quiz:
                  items: []
                  key_position_bias: null
                session: null
                lesson: null
                summary: 1 objective(s) (1 below 4/5)
        '400':
          description: No audit inputs supplied.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: bad_request
                  message: >-
                    Send at least one of objectives, quiz items, session blocks,
                    or lesson_text to audit.
        '401':
          description: Missing, expired, or invalid bearer token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: signed_out
                  message: Sign in to continue.
        '403':
          description: >-
            Connector disabled, Pro API key entitlement required (pro_required),
            route forbidden (connector_forbidden or api_key_forbidden), or
            consent missing.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: connector_forbidden
                  message: >-
                    An AI app cannot do that. Open Enablement Studio on the web
                    to do it.
components:
  schemas:
    AuditRequest:
      type: object
      description: >-
        At least one of objectives, quiz, session, or lesson_text must be
        present.
      properties:
        objectives:
          type: array
          maxItems: 30
          items:
            type: string
            maxLength: 1000
        quiz:
          type: array
          maxItems: 30
          items:
            type: object
            required:
              - question
              - choices
              - answer
            properties:
              question:
                type: string
              choices:
                type: array
                minItems: 2
                maxItems: 8
                items:
                  type: string
              answer:
                type: string
        session:
          type: array
          maxItems: 40
          items:
            type: object
            required:
              - minutes
            properties:
              minutes:
                type: number
              title:
                type: string
              description:
                type: string
        lesson_text:
          type: string
          maxLength: 40000
    AuditResponse:
      type: object
      required:
        - objectives
        - quiz
        - session
        - lesson
        - summary
      properties:
        objectives:
          type: array
          items:
            type: object
        quiz:
          type: object
        session:
          type:
            - object
            - 'null'
        lesson:
          type:
            - object
            - 'null'
        summary:
          type: string
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
            message:
              type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Bearer token from OAuth 2.1 MCP sign-in, native app sign-in, or a Pro
        developer API key (`es_live_...`).

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.