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

> List all courses belonging to this API client.

Filter by your own reference ID with ?external_ref=company_acme



## OpenAPI

````yaml /openapi.yaml get /api/v1/courses
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:
    get:
      tags:
        - B2B Courses
      summary: List Courses
      description: |-
        List all courses belonging to this API client.

        Filter by your own reference ID with ?external_ref=company_acme
      operationId: list_courses_api_v1_courses_get
      parameters:
        - name: external_ref
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: External Ref
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/CourseListItem'
                title: Response List Courses Api V1 Courses Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    CourseListItem:
      properties:
        id:
          type: string
          title: Id
        title:
          type: string
          title: Title
        status:
          type: string
          title: Status
        module_count:
          type: integer
          title: Module Count
        language:
          type: string
          title: Language
        created_at:
          type: string
          title: Created At
        external_ref:
          anyOf:
            - type: string
            - type: 'null'
          title: External Ref
      type: object
      required:
        - id
        - title
        - status
        - module_count
        - language
        - created_at
      title: CourseListItem
      description: Single item in GET /api/v1/courses response
    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

````