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

# Get Status

> Poll course generation status.

Use ?after=<timestamp> to get only events newer than that timestamp (long-polling style).



## OpenAPI

````yaml /openapi.yaml get /api/v1/courses/{course_id}/status
openapi: 3.1.0
info:
  title: Mahara Platform
  description: >
    AI Sales Training Course Generator, a Coursera-style platform.


    ## Authentication


    Every request must carry your API key as a Bearer token:


    `Authorization: Bearer sk_live_your_key_here`


    ## Getting an API key


    API keys are provisioned by our team. They are not self-service, so there is
    no signup page to apply on. To request access, email **sales@myustadia.com**
    and we will issue a key for your account.
  version: 1.0.0
servers: []
security: []
paths:
  /api/v1/courses/{course_id}/status:
    get:
      tags:
        - B2B Courses
      summary: Get Status
      description: >-
        Poll course generation status.


        Use ?after=<timestamp> to get only events newer than that timestamp
        (long-polling style).
      operationId: get_status_api_v1_courses__course_id__status_get
      parameters:
        - name: course_id
          in: path
          required: true
          schema:
            type: string
            title: Course Id
        - name: after
          in: query
          required: false
          schema:
            type: number
            default: 0
            title: After
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StatusResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    StatusResponse:
      properties:
        status:
          type: string
          title: Status
          description: >-
            generating | paused_for_review | awaiting_outline_review | ready |
            partial_quota_exceeded | error
        progress:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Progress
          description: Recent progress events
        scenes_preview:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Scenes Preview
          description: Scene data when status is paused_for_review
        error_message:
          anyOf:
            - type: string
            - type: 'null'
          title: Error Message
        error_stage:
          anyOf:
            - type: string
            - type: 'null'
          title: Error Stage
          description: >-
            Coarse stage a failure occurred at (job kind, e.g.
            scene_extract/finalize; or 'assembly' for a recoverable
            not-deliverable finalize -- content is intact and review/retry
            continues; 'billing_integrity' for a refused-partial-bill finalize).
            Null when there is no active failure.
        error_detail:
          anyOf:
            - type: string
            - type: 'null'
          title: Error Detail
          description: >-
            Short human-readable reason for the failure at error_stage. Null
            when there is no active failure.
        current_step:
          anyOf:
            - type: string
            - type: 'null'
          title: Current Step
          description: >-
            Coarse pipeline step: scene_generation | outline_review |
            slide_review | audio_review | finalizing | complete
        current_review:
          anyOf:
            - type: string
            - type: 'null'
          title: Current Review
          description: 'Artifact awaiting review: outline | slide | audio (or null)'
        current_chunk_index:
          anyOf:
            - type: integer
            - type: 'null'
          title: Current Chunk Index
          description: >-
            Kept for backward compat; always null on the per-stage path (chunk
            statuses removed migration 055)
      type: object
      required:
        - status
      title: StatusResponse
      description: Response for GET /api/v1/courses/{id}/status
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````