> ## 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

> How to build and save custom transactional email templates.

# Create Template

Templates can be created either through the Mailofly dashboard or programmatically via the REST API.

## Creating in the Dashboard

1. Navigate to **Templates** in the sidebar.
2. Click **New Template**.
3. Enter a descriptive name (e.g. `welcome-email`, `invoice-receipt`).
4. Choose starting layout (Blank HTML, Markdown, or pre-built system template).
5. Add your subject line and HTML/liquid content.

## Creating via API

```bash theme={null}
curl -X POST "https://api.mailofly.com/api/templates" \
  -H "Authorization: Bearer mf_live_..." \
  -d '{
    "name": "Password Reset",
    "subject": "Reset your password",
    "html": "<p>Click here to reset: {{reset_link}}</p>"
  }'
```


## Related topics

- [Create Template](/api/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)
