> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mailofly.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Template

> Create a reusable email template.

Creates a reusable HTML/liquid template with dynamic merge tags.

### Body

<ParamField body="name" type="string" required>Template display name</ParamField>
<ParamField body="subject" type="string">Default subject line</ParamField>
<ParamField body="html" type="string" required>HTML body content</ParamField>
<ParamField body="variables" type="string[]">List of required variable names</ParamField>

### Response

<ResponseField name="id" type="string">Template ID (`tpl_...`)</ResponseField>
<ResponseField name="name" type="string">Template name</ResponseField>


## Related topics

- [Create Template](/templates/create-template.md)
- [Create Campaign](/api/campaigns/create-campaign.md)
- [Version History](/templates/version-history.md)
- [Introduction](/templates/introduction.md)
- [Create Domain](/api/domains/create-domain.md)
