listmonk unofficial
POST/campaigns/{id}/text

Render a campaign text preview

Renders a text preview of a campaign using the supplied template and content fields. Use id to identify the campaign and provide the preview inputs as form-encoded fields. The request body fields are optional in the schema.

  • IdempotentThe SDK sends Idempotency-Key, so a retried request is only applied once.

1 parameter · 3 body fields
idintegerrequired
The integer identifier of the campaign to preview.

Form-encoded template and campaign content fields used to render the preview; all fields are optional in the schema.

template_idintegeroptional
template id
content_typestringoptional
content type
bodystringoptional
campaign body

1 status code
200Returns the rendered campaign preview as an HTML string.

Error handling

The id path parameter must be an integer identifying the campaign to preview. The body fields are optional in the schema; supply template_id as an integer and content_type and body as strings when included.