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

# List a course's modules

> Lists the modules of a company course, each with its contents (distributions) in order.



## OpenAPI

````yaml /openapi.yaml get /clients/routes/{route_id}/modules/
openapi: 3.1.0
info:
  title: hackU Client API
  version: 1.2.0
  description: >
    Public API for hackU corporate clients. It lets a company manage its
    learners

    (create, update, deactivate), enroll them in courses (routes) and pensums,

    read their progress, and send WhatsApp / email communications.


    **Authentication.** Every request must send the header

    `Authorization: Api-Key <token>`. The key identifies the company; there is
    no

    company parameter in the URL except where noted.


    **Pagination.** List endpoints that are paginated use limit/offset

    (`limit` default 50, maximum 500) and return `{count, next, previous,
    results}`.


    **Errors.** A missing, invalid, revoked or expired key returns `403` with

    `{"detail": "..."}`. Validation errors return `400` with

    `{"<field>": ["<message>", ...]}` (or `non_field_errors`). Some messages are

    returned in Spanish.


    **Identifiers.** `user_id` in every path is the hackU user id, returned as

    `user_pk` by `POST /clients/users/` and as `id` by `GET /clients/users/`.
servers:
  - url: https://app.reinvented.education/api
    description: Production
  - url: https://qa-admin.hacku.co/api
    description: Test
security:
  - ApiKeyAuth: []
tags:
  - name: Users
    description: Create, read, update and deactivate the company's learners.
  - name: Enrollment
    description: Assign courses (routes), modules and pensums.
  - name: Progress
    description: >-
      Read learners' progress in courses, modules, pensums, evaluations, surveys
      and certificates.
  - name: Catalog
    description: The company's courses (routes) and their modules.
  - name: Extra fields
    description: Company-defined custom user fields.
  - name: Communications
    description: Send WhatsApp or email messages using approved templates.
paths:
  /clients/routes/{route_id}/modules/:
    parameters:
      - $ref: '#/components/parameters/RouteId'
    get:
      tags:
        - Catalog
      summary: List a course's modules
      description: >-
        Lists the modules of a company course, each with its contents
        (distributions) in order.
      operationId: listRouteModules
      parameters:
        - $ref: '#/components/parameters/Limit'
        - $ref: '#/components/parameters/Offset'
      responses:
        '200':
          description: Paginated modules with contents.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedRouteModules'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  parameters:
    RouteId:
      name: route_id
      in: path
      required: true
      description: Course (route) id.
      schema:
        type: integer
      example: 731
    Limit:
      name: limit
      in: query
      description: Page size (default 50, maximum 500).
      schema:
        type: integer
        minimum: 1
        maximum: 500
        default: 50
    Offset:
      name: offset
      in: query
      description: Number of items to skip.
      schema:
        type: integer
        minimum: 0
        default: 0
  schemas:
    PaginatedRouteModules:
      allOf:
        - $ref: '#/components/schemas/PaginationMeta'
        - type: object
          properties:
            results:
              type: array
              items:
                $ref: '#/components/schemas/RouteModule'
    PaginationMeta:
      type: object
      required:
        - count
        - next
        - previous
      properties:
        count:
          type: integer
          description: Total number of items.
        next:
          type:
            - string
            - 'null'
          format: uri
        previous:
          type:
            - string
            - 'null'
          format: uri
    RouteModule:
      type: object
      properties:
        ordering:
          type: integer
        content_module:
          type: object
          properties:
            pk:
              type: integer
            slug_name:
              type: string
            name:
              type: string
            description:
              type:
                - string
                - 'null'
            distributions:
              type: array
              items:
                type: object
                properties:
                  id:
                    type: integer
                  ordering:
                    type: integer
                  is_active:
                    type: boolean
                  self_assessments:
                    type: array
                    items:
                      type: integer
                  content:
                    type: object
                    properties:
                      id:
                        type: integer
                      title:
                        type: string
                      slug_name:
                        type: string
                      duration:
                        type:
                          - string
                          - 'null'
                      content_type:
                        type: string
                        description: Content type slug, e.g. video, evaluation.
                      video_file:
                        type:
                          - string
                          - 'null'
                        format: uri
                      view_file:
                        type:
                          - string
                          - 'null'
                        format: uri
                      audio_file:
                        type:
                          - string
                          - 'null'
                        format: uri
                      thumbnail:
                        type:
                          - string
                          - 'null'
                        format: uri
    Error:
      type: object
      required:
        - detail
      properties:
        detail:
          type: string
  responses:
    Forbidden:
      description: Missing, invalid, revoked or expired API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            detail: Authentication credentials were not provided.
    NotFound:
      description: Not found (or not visible to this API key).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            detail: Not found.
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: >-
        Company API key. The header value must be `Api-Key <token>`, e.g.
        `Authorization: Api-Key AbCd1234.xxxxxxxx`.

````

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