Skip to main content
POST
https://api2.ecomailapp.cz
/
template
curl -X POST https://api2.ecomailapp.cz/template \
  -H "key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "New Template",
    "html": "<b>Template HTML</b>"
  }'
{
  "id": 1,
  "name": "New Template",
  "html": "<b>Template HTML</b>"
}
name
string
required
Template name.
html
string
required
Template HTML content.
curl -X POST https://api2.ecomailapp.cz/template \
  -H "key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "New Template",
    "html": "<b>Template HTML</b>"
  }'
{
  "id": 1,
  "name": "New Template",
  "html": "<b>Template HTML</b>"
}