Create a template
lob_templates_createCreate reusable HTML templates for mail pieces, supporting Handlebars variables for dynamic content substitution.
Instructions
Create a reusable HTML template that can be referenced by ID (tmpl_…) when creating mail pieces. Supports Handlebars-style {{variables}} for runtime substitution.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| description | No | ||
| html | Yes | HTML content of the template (UTF-8). | |
| engine | No | Template engine. Defaults to 'handlebars'. | |
| metadata | No | Up to 20 string key/value pairs of arbitrary metadata to attach to the resource. | |
| extra | No | Additional Lob API parameters not enumerated above. Merged into the request body verbatim. See https://docs.lob.com for the full parameter list per resource. |