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

# List Enrollments

> List the header learner's enrollments, across every course in the org
(not scoped to one course_id).

Auth: portal API key + X-Learner-Email header.

Title is joined from courses under the catalog policy, so a course that
was unlisted AFTER enrollment returns a blank title (still listed by
course_id) rather than vanishing from the list.

Returns 200 with a list of
{enrollment_id, course_id, title, status, completion_pct}, ordered by
enrollment creation, most recent first. Empty list if never enrolled
(not a 404).



## OpenAPI

````yaml /openapi.yaml get /api/v1/learn/enrollments
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/learn/enrollments:
    get:
      tags:
        - B2B Learn
      summary: List Enrollments
      description: |-
        List the header learner's enrollments, across every course in the org
        (not scoped to one course_id).

        Auth: portal API key + X-Learner-Email header.

        Title is joined from courses under the catalog policy, so a course that
        was unlisted AFTER enrollment returns a blank title (still listed by
        course_id) rather than vanishing from the list.

        Returns 200 with a list of
        {enrollment_id, course_id, title, status, completion_pct}, ordered by
        enrollment creation, most recent first. Empty list if never enrolled
        (not a 404).
      operationId: list_enrollments_api_v1_learn_enrollments_get
      parameters:
        - name: X-Learner-Email
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Learner-Email
        - name: X-Learner-Sig
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Learner-Sig
        - name: X-Learner-Sig-Ts
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Learner-Sig-Ts
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    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

````