> ## Documentation Index
> Fetch the complete documentation index at: /docs/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/templates" \
  -H "Authorization: Bearer mf_live_..." \
  -d '{
    "name": "Password Reset",
    "subject": "Reset your password",
    "html": "<p>Click here to reset: {{reset_link}}</p>"
  }'
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.