Skip to main content
POST
/
api
/
email_templates
Create an email template
curl --request POST \
  --url https://app.herondata.io/api/email_templates \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "cc_address": null,
  "html_body": "<string>",
  "name": "<string>",
  "reply_to_address": null,
  "to_address": null
}'
{
  "email_template": {
    "cc_address": null,
    "heron_id": "<string>",
    "html_body": "<string>",
    "name": "<string>",
    "reply_to_address": null,
    "to_address": null
  }
}

Authorizations

x-api-key
string
header
required

Body

application/json
html_body
string
required

The body of the email to send.

name
string
required

Unique name of the email template. Used to match which email template to send. Only alphanumeric characters, underscores, and dashes are allowed.

Required string length: 3 - 50
cc_address
string | null

The email address to CC

reply_to_address
string | null

The email address to reply to

to_address
string | null

The email address to send the email to

Response

201 - application/json

OK

email_template
object
I