- Copy an account-level template version
Get account-level templates
Create an account-level template
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
Rename a template
Copy an account-level tem...
Copies an existing version of an account-level template into a new version with the provided name.
Security
basicAuth
- US Mailgunhttps://api.mailgun.net/v4/templates/{template_name}/versions/{version_name}/copy/{new_version_name}
- EU Mailgunhttps://api.eu.mailgun.net/v4/templates/{template_name}/versions/{version_name}/copy/{new_version_name}
curl -i -X PUT \
-u '<username>:<password>' \
'https://api.mailgun.net/v4/templates/{template_name}/versions/{version_name}/copy/{new_version_name}?comment=string'Response
{ "message": "version has been copied", "version": { "tag": "cloned version", "template": "<p>{{firstname}} {{lastname}}</p>", "createdAt": "Fri, 21 Mar 2025 15:00:44 UTC", "comment": "a comment value from copy", "id": "95658c55-e93a-40d5-a02f-a4fadfbbb3ca" } }