Templates
Get Notification Template
Changed onRetrieve a notification template by ID. Returns the published version by default. Pass version=draft to retrieve an unpublished template.
get/notifications/{id}
Request
- Base URLhttps://api.courier.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idstring required
Template ID (nt_ prefix).
Query parameters
versionstring
Version to retrieve. One of "draft", "published", or a version string like "v001". Defaults to "published".
Response
Example response
{
"content": {
"elements": [
{
"channel": "email"
}
]
}
}Changes
- breaking
added
subschema #1subschema #3subschema #7to the///response propertyoneOflist for the response status - info
added
subschema #2: NotificationTemplateResponseFieldsto the response bodyallOflist for the response status - info
removed
subschema #2from the response bodyallOflist for the response status - info
removed
subschema #1subschema #3subschema #7from the///response propertyoneOflist for the response status
- breaking
- info
api tag
Templatesadded - info
api tag
Notification Templatesremoved
- info