Read / Get Templates
Last updated
Was this helpful?
Last updated
Was this helpful?
Just as the heading itself indicates you just have to enter the name of the required template to get it.
Note: This is an example getting a template by its name (
test_template
)
Just as the Template before this works exactly the same, but the twist with this template is that it has an image in its header.
This endpoint allows you to retrieve a list of all templates.
These queries and filter's will allow you to list relevant templates.
You can query the template by their enabled status
API call to get a Template.
Organization ID
Successfully retrieved Template
"344540b058c0ad640439fd0"
The template name must only contain lower case letters, underscores, and numbers
"test_template"
"auto-ingested - tag configuration required"
""
"en_US"
"MARKETING"
[{"type":"HEADER","format":"TEXT","text":"This is some example {{1}} text","buttons":[]},{"type":"BODY","text":"hardcoded: {{1}} subscriber-field: {{2}} appanrently this needs to be longer","buttons":[]}]
"REJECTED"
false
"3392719194307567"
0
"3452de4d79ue01d929e001df"
API call to get a Template with image in the header
Successfully retrieved Template (with image in the header)
"232db54t058c00154d64345"
Name of organization
"demowithpicture"
"auto-ingested"
""
"en"
"ALERT_UPDATE"
"APPROVED"
true
"8975875675876677"
"2022-11-08T13:31:24.035Z"
"2022-11-22T12:32:19.469Z"
1
"6695706dfs9569659765j709"
API request to list enabled & configured templates
Successfully retrieved template enabled and configured list
"659039655cf56a8df0c8908"
"order_shipped"
"A Template to test an alert"
"default"
"en_US"
"ALERT_UPDATE"
"APPROVED"
true
"232136887459187"
"2023-04-05T09:49:51.064Z"
"2023-09-13T11:12:53.984Z"
121
"1443f649u7053539346"
API request to list enabled templates
Successfully retrieved enabled templates
"659039655cf56a8df0c8908"
"order_shipped"
"A Template to test an alert"
"default"
"en_US"
"ALERT_UPDATE"
"APPROVED"
true
"232136887459187"
"2023-04-05T09:49:51.064Z"
"2023-09-13T11:12:53.984Z"
121
"1443f649u7053539346"
API request to List templates
Organization ID
Successfully retrieved Template List
"659039655cf56a8df0c8908"
"order_shipped"
"A Template to test an alert"
"default"
"en_US"
"ALERT_UPDATE"
"APPROVED"
true
"232136887459187"
"2023-04-05T09:49:51.064Z"
"2023-09-13T11:12:53.984Z"
121
"1443f649u7053539346"