HomeGuidesAPI Reference
ChangelogHelp CenterCommunityContact Us
API Reference
These docs are for a deprecated API version. Click here to use the latest version.

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

array of strings

Provide fields to limit the returned data

return_fields
Headers
string
required
Defaults to 2023-01-24

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

Responses

Language
Credentials