openemail.templates
Stored mail templates an account sends by name: create them, write each language's copy, preview and send them.
Its 9 methods, each a page of its own, in the order the API reference presents them:
| Method | What it does | It calls |
|---|---|---|
templates.list | List this account's mail templates | GET /accounts/{accountId}/templates |
templates.create | Create a mail template | POST /accounts/{accountId}/templates |
templates.get | Get one mail template | GET /accounts/{accountId}/templates/{slug} |
templates.update | Update a template's metadata | PATCH /accounts/{accountId}/templates/{slug} |
templates.delete | Delete a mail template | DELETE /accounts/{accountId}/templates/{slug} |
templates.setVariant | Write one language's copy | PUT /accounts/{accountId}/templates/{slug}/variants/{lang} |
templates.deleteVariant | Remove one language's copy | DELETE /accounts/{accountId}/templates/{slug}/variants/{lang} |
templates.render | Render a template without sending it | POST /accounts/{accountId}/templates/{slug}/render |
templates.send | Send a template to one or more recipients | POST /accounts/{accountId}/templates/{slug}/send |
In the API reference: Templates.