Template methods
POST
template/create
This method create new template.
Request url
https://euapi.sendigo.com/template/create
Request body
appId: xxxxxxxxxxxxxxxxxxxxxxxxxx

data:
{
"title":"example",
"subject":"example",
"body":{"html":"html example","text": "plain text example"}
}
Data Type Description Example
slug Required String Identificator of template. my-template
title Required String Just small description for my template My template
subject Required String Will be sent as subject of email Subject
body Required String Array that contains 2 elements - html and text.(Html is a html formatted part of body; Text is a plain text part of body.) ["html": "<div>Example html body.</div>", "text": "Example text content."]
POST
template/update
This method update settings for existing template.
Request url
https://euapi.sendigo.com/template/update
Request body
appId: xxxxxxxxxxxxxxxxxxxxxxxxxx

data:
{
"slug":"template-xxxxxxxx",
"title":"example",
"subject":"example test",
"body":{"html":"html example2","text": "plain text example2"}
}
Data Type Description Example
slug Required String Identificator of template. my-template
title Optional String Just small description for my template My template
subject Optional String Will be sent as subject of email Subject
body Optional String Array that contains 2 elements - html and text.(Html is a html formatted part of body; Text is a plain text part of body.) ["html": "<div>Example html body.</div>", "text": "Example text content."]
POST
template/delete
This method delete existing template by slug.
Request url
https://euapi.sendigo.com/template/delete
Request body
appId: xxxxxxxxxxxxxxxxxxxxxxxxxx

data: {"slug":"template-xxxxxxxx"}
Data Type Description Example
slug Required String Identificator of template. my-template
POST
template/get
This method get single layout by slug.
Request url
https://euapi.sendigo.com/template/get
Request body
appId: xxxxxxxxxxxxxxxxxxxxxxxxxx

data: {"slug":"template-xxxxxxxx"}
Data Type Description Example
slug Required String Identificator of template. my-template
POST
template/list
This method list all available templates.
Request url
https://euapi.sendigo.com/template/list
Request body
appId: xxxxxxxxxxxxxxxxxxxxxxxxxx