HomeGuidesAPI Reference
ChangelogHelp CenterCommunityContact Us
API Reference

Create Template

Create a new custom HTML template.

If there are 1,000 or more templates in an account, creation will fail as there is a limit of 1,000 templates
that can be created via the API.

Request specific fields using sparse fieldsets.

Rate limits:
Burst: 10/s
Steady: 150/m

Scopes:
templates:write

Body Params
object
required
string
required
object
required
string
required
Defaults to Monthly Newsletter Template

The name of the template

string
required

Restricted to CODE

string
Defaults to <html> <body> hello world </body> </html>

The HTML contents of the template

string
Defaults to hello world

The plaintext version of the template

Headers
string
required
Defaults to 2024-02-15

API endpoint revision (format: YYYY-MM-DD[.suffix])

Responses

Language
Credentials