Get a template
Templates
Get a template
GET
Get a template
Retrieves a template by ID. You can optionally specify a version number to retrieve a specific version of the template.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/alphagov/notifications-api/llms.txt
Use this file to discover all available pages before exploring further.
Path Parameters
The UUID of the template to retrieve
Optional Path Parameters
The version number of the template to retrieve. If not specified, returns the latest version. Minimum value: 1
Authentication
Requires an API key with appropriate service permissions.Response
The UUID of the template
The type of template. One of:
sms- SMS message templateemail- Email templateletter- Letter template
ISO 8601 datetime when the template was created
ISO 8601 datetime when the template was last updated
Email address of the user who created the template
The version number of the template
The content of the template
The subject line (for email templates only)
The name of the template
The postage class for letter templates. One of:
first- First classsecond- Second classeconomy- Economy classeurope- Europerest-of-world- Rest of world
Example Request
Example Response
Error Responses
HTTP status code
Array of error objects describing what went wrong