Modules

Retrieve module content

Retrieve the HTML content of a module's latest published version. Draft versions are never returned. Returns a 422 error if the module has no published version.

get/modules/{module_id}/content

Request

Path parameters

module_idstring required

ID of module

Response

OK

Example response

{
  "data": {
    "type": "module-content",
    "id": "63eff78889f21",
    "attributes": {
      "id": "63eff78889f21",
      "name": "Hero Banner",
      "type": "email",
      "status": "final",
      "category": {
        "id": "63eff7760568b",
        "name": "Headers"
      },
      "brand_ids": [
        "63eff7760568a"
      ],
      "version": "2",
      "html": "<div>Hero banner content</div>"
    }
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.