Lettr icon

Lettr

Interact with Lettr transactional email APIs

Template → Create

AI-generated

Summary

Create a Lettr template using either HTML content or Topol visual editor JSON, and optionally assign it to a folder or project and choose its purpose.

Inputs

  • Name (required) — Template name.
  • Content Type — Choose HTML (the default) or JSON (Topol). Supply the matching required HTML or JSON content field.
  • HTML (required) — HTML template content, shown when Content Type is HTML.
  • JSON (required) — Topol visual editor JSON content, shown when Content Type is JSON.
  • Folder ID — Optional folder ID for the new template; use the Folder resource to find one. The UI default is 0.
  • Project ID — Optional project ID for the new template. The UI default is 0.
  • Purpose — Choose Transactional (default) or Campaign. This choice cannot be changed after creation; campaign sending requires a campaign-purpose template.

Output shape

A single created-template response item.

The provided source pack shows the operation structure but omits implementation bodies, so response fields and exact runtime handling are not established.

Links

Discussion