Template
Returns the list of all or some templates of the account.
You can iterate thru large list using "offset" and "limit" parameters. When less than "limit" templates are returned then the end of list is reached.
post/template/list.json
Request
- Base URL: https://api.unione.io/en/transactional/api/v1
- URL: https://api.unione.io/en/transactional/api/v1/template/list.json
- Auth: API key in header X-API-KEY
Request body
Response
Template list returned successfully.
Example response
{
"templates": [
{
"editor_type": "html",
"template_engine": "velocity",
"body": {
"html": "<b>Hello, b;b;to_namec;c;</b>",
"plaintext": "Hello, b;b;to_namec;c;",
"amp": "<!doctype html><html amp4email><head> <meta charset=\"utf-8\"><script async src=\"https://cdn.ampproject.org/v0.js\"></script> <style amp4email-boilerplate>body{visibility:hidden}</style></head><body> Hello, AMP4EMAIL world.</body></html>"
},
"subject": "UniOne test email ",
"from_name": "John Smith",
"reply_to": "email@example.com",
"reply_to_name": "John Smith",
"headers": {
"X-MyHeader": "some data",
"Test-List-Unsubscribe": "<mailto: unsubscribe@example.com?subject=unsubscribe>, <http://www.example.com/unsubscribe/b;b;CustomerIdc;c;>"
},
"attachments": [
{
"type": "text/plain",
"name": "readme.txt",
"content": "SGVsbG8sIHdvcmxkIQ=="
}
],
"inline_attachments": [
{
"type": "image/gif",
"name": "IMAGECID1",
"content": "R0lGODdhAwADAIABAP+rAP///ywAAAAAAwADAAACBIQRBwUAOw=="
}
],
"user_id": 11344,
"project_id": "6123462132634",
"project_name": "Project 1A"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.