Skip to content

Get a version

Request

Retrieve the information and content of the specified version of a template.

Security
basicAuth
Path
domain_namestringrequired

Domain name the template is stored under.

template_namestringrequired

Template name the version is for.

version_namestringrequired

Tag of the version of the template to fetch.

curl -i -X GET \
  -u '<username>:<password>' \
  'https://api.mailgun.net/v3/{domain_name}/templates/{template_name}/versions/{version_name}'

Responses

A 200 response

Bodyapplication/json
templategithub.com-mailgun-temple-model-Template (object) or nullrequired
Any of:

Template details

Response
{ "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": {} } }