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

# Get run status

> Polls a background draft until status reaches done or failed and kit_id + kit_url are populated.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/runs/{run}
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/runs/{run}:
    get:
      tags:
        - Runs
      summary: Get run status
      description: >-
        Polls a background draft until status reaches done or failed and kit_id
        + kit_url are populated.
      operationId: getRun
      parameters:
        - name: run
          in: path
          required: true
          schema:
            type: string
            pattern: run-[0-9a-f]{24}
          description: Run identifier (`run-` + 24 lowercase hex characters).
          example: run-0f3a9c2b7d104e6a8b5c1d2e
      responses:
        '200':
          description: Run status and resulting kit reference.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RunResponse'
              example:
                run:
                  id: run-0f3a9c2b7d104e6a8b5c1d2e
                  product: role
                  status: done
                  stage: null
                  engine: ai
                  offline_reason: null
                  kit_id: 12
                  kit_url: https://enablementstudio.ai/kit?run=12
                  poll: /api/v1/runs/run-0f3a9c2b7d104e6a8b5c1d2e
                  poll_after: null
                  created_at: 1700000000
        '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.
        '404':
          description: Resource missing, trashed, or owned by another account.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: not_found
                  message: That page is not part of the app.
components:
  schemas:
    RunResponse:
      type: object
      required:
        - run
      properties:
        run:
          type: object
          required:
            - id
            - product
            - status
            - stage
            - engine
            - offline_reason
            - kit_id
            - kit_url
            - poll
            - poll_after
            - created_at
          properties:
            id:
              type: string
              pattern: run-[0-9a-f]{24}
            product:
              type: string
              enum:
                - role
                - call
                - critic
            status:
              type: string
              enum:
                - running
                - done
                - failed
            stage:
              type:
                - object
                - 'null'
            engine:
              type: string
              enum:
                - ai
                - offline
            offline_reason:
              type:
                - string
                - 'null'
              enum:
                - allowance_spent
                - studio_paused
                - connector_paused
                - null
            kit_id:
              type:
                - integer
                - 'null'
            kit_url:
              type:
                - string
                - 'null'
            poll:
              type: string
            poll_after:
              type:
                - integer
                - 'null'
            error:
              type: string
            created_at:
              type: integer
    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.