---
title: "Retrieve module content"
method: GET
path: "/modules/{module_id}/content"
tags: ["Modules"]
---

# Retrieve module content

`GET /modules/{module_id}/content`

## Request

- Base URL: `https://enterprise.knak.io/api/published/v1`
- URL: `https://enterprise.knak.io/api/published/v1/modules/{module_id}/content`
- Auth: none declared
- TypeScript: <https://skmtc.dev/knak/apis/knak-enterprise-api/docs/modules/:module_id/content/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieve the HTML content of a [module](#tag/module_model)'s latest published version. Draft versions are never returned. Returns a 422 error if the module has no published version.

## Path parameters

- `module_id` string, required

## Response `200`

OK

- ModuleContent
  - `data` object
    - `type` string
    - `id` string
    - `attributes` object
      - `id` string
      - `name` string
      - `type` 'email' | 'landing'
      - `status` 'draft' | 'final'
      - `category` object, nullable
        - `id` string
        - `name` string
      - `brand_ids` string[]
      - `version` string
      - `html` string

## Other responses

- `401`: Unauthenticated
- `403`: Unauthorized
- `404`: Not Found
- `422`: Unprocessable Entity - the module has no published version

---

[API](https://skmtc.dev/knak/apis/knak-enterprise-api.md) - [All operations](https://skmtc.dev/knak/apis/knak-enterprise-api/llms.txt) - [OpenAPI document](https://skmtc.dev/knak/apis/knak-enterprise-api/revisions/31d2c94edfcc?raw)
