- Create an account-level template
Get account-level templates
Delete all account-level templates
Get all account-level template versions
Create an account-level template version
Get an account-level template
Update an account-level template
Delete an account-level template
Get an account-level template version
Update an account-level template version
Delete an account-level template version
Copy a template
Copy an account-level template version
Rename a template
Create an account-level t...
Store a new account-level template that is available across all domains for the account. Include the template name, description and (optionally) the template content. If the template content is provided, a new version is automatically created and becomes the active version.
Security
basicAuth
Name of the template being stored. Supports utf-8 characters and name will be down cased.
Initial tag of the created version. If the template parameter is provided and the tag is missing, the default value initial is used.
Version comment. This is valid only if a new version is being created. (template parameter is provided.)
- US Mailgunhttps://api.mailgun.net/v4/templates
- EU Mailgunhttps://api.eu.mailgun.net/v4/templates
curl -i -X POST \
-u '<username>:<password>' \
https://api.mailgun.net/v4/templates \
-H 'Content-Type: multipart/form-data' \
-F name=string \
-F description=string \
-F createdBy=string \
-F template=string \
-F tag=string \
-F comment=string \
-F headers=stringResponse
{ "message": "template has been stored", "template": { "name": "template_name", "description": "This is the description of the template", "createdAt": "Sat, 12 Nov 1955 06:38:00 UTC", "createdBy": "user-supplied-value", "id": "46565d87-68b6-4edb-8b3c-34554af4bb77", "domain": "header.tld", "version": { … } } }