Skip to main content
POST
/
save_template
Save template
curl --request POST \
  --url https://yourdomain.com/save_template \
  --header 'Content-Type: application/json' \
  --cookie admin_cookie= \
  --data '
{
  "template_name": "<string>",
  "mail_data": "<string>"
}
'
"Template Saved"

Authorizations

Admin cookie authentication (configurable in config.json)

Body

application/json
template_name
string

Template name

mail_data
string

Template MIME content

Response

Template saved successfully

The response is of type string.

Example:

"Template Saved"