listmonk unofficial
POST/templates/preview

Preview a template

Generates an HTML preview from the supplied template parameters. Provide template_type to identify the template type and body to supply the template content.

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

2 body fields

Form-encoded parameters used to generate an HTML template preview.

template_typestringoptional
type of template
bodystringoptional
template body

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

Error handling

Use template_type to specify the type of template to preview and body to provide its content.