curl --request POST \
--url https://app.herondata.io/api/email_templates \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"html_body": "<string>",
"name": "<string>",
"cc_address": null,
"reply_to_address": null,
"to_address": null
}
'{
"email_template": {
"html_body": "<string>",
"name": "<string>",
"cc_address": null,
"heron_id": "<string>",
"reply_to_address": null,
"to_address": null
}
}Create an email template used to send emails conditional on events like policy evaluation
curl --request POST \
--url https://app.herondata.io/api/email_templates \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"html_body": "<string>",
"name": "<string>",
"cc_address": null,
"reply_to_address": null,
"to_address": null
}
'{
"email_template": {
"html_body": "<string>",
"name": "<string>",
"cc_address": null,
"heron_id": "<string>",
"reply_to_address": null,
"to_address": null
}
}The body of the email to send.
Unique name of the email template. Used to match which email template to send. Only alphanumeric characters, underscores, and dashes are allowed.
3 - 50The email address to CC
The email address to reply to
The email address to send the email to
OK
Show child attributes
The body of the email to send.
Unique name of the email template. Used to match which email template to send. Only alphanumeric characters, underscores, and dashes are allowed.
3 - 50The email address to CC
Unique identifier for the email template
The email address to reply to
The email address to send the email to
Was this page helpful?