Retrieve Message Content

Builds and returns the rendered email content for a specific article (email-article) or lift letter (email-promo / email-renewal). Combines the chosen template (template_id) with the resource and publication context, applies macro replacement and video thumbnails, and returns the merged HTML in content plus the resource's subject and preview_line. This is the standard step before calling POST /messages (createMessage): take the returned content, subject, and preview_line and pass them straight into the create payload. The create endpoint does NOT re-render content from template_id — the content you submit is what gets sent. This endpoint is for resource-backed message types only. Free-style (email-free-style) messages do NOT use this endpoint — fetch the template directly via GET /templates/{id} (retrieveTemplate) instead, strip the {$sys_email.content} (or {$sys_email_content}) placeholder, write the body in its place, and submit that as content on POST /messages.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
integer
required

The ID of the resource (article for email-article, lift letter for email-promo / email-renewal) to build content from. Browse available resource IDs via GET /messages/contents (retrieveMessageContents).

Query Params
integer
required

The message type ID. Must resolve to one of email-article, email-promo, or email-renewal (this endpoint does not handle email-free-style).

integer
required

The publication ID the message is being sent from.

integer
required

The template ID to render the content with. Browse via GET /templates (retrieveTemplates). The same template_id should be passed to POST /messages (where it is stored as metadata).

integer

ID of the publication being promoted. Required for email-promo.

integer

The effort ID to inject campaign links into the content. Used with promo / renewal sends.

string
enum

The renewal cohort. Required when message_type is email-renewal. One of: 'active' or 'expired'.

Allowed:
Responses

400

Unknown or unsupported message_type_id for this endpoint (e.g. email-free-style, which should use GET /templates/{id} instead).

Language
Credentials
Bearer
JWT
URL
LoadingLoading…
Response
Choose an example:
application/json