post
https://api.octopush.com/v1/public/email-templates
Encoding : UTF-8
Authentication
Your "api-key" and "api-login" identifiers must be added in the headers.
Definition
This web service allows you to create a reusable email template populated with your landing page content.
Parameters
| Name | Type | Description |
|---|---|---|
| name | string | Template label displayed in your dashboard. |
| page_title | string | Title injected inside the generated HTML <title> tag. |
| page_description | string | Text inserted inside the meta description tag. |
| html_content | string | Raw HTML body of your template. |
| css_content | string | Optional CSS styles applied to the HTML content. |
| json_design | string | Optional design payload produced by the landing page builder. |
| unsubscription_mention_language | string | Optional language code for the unsubscribe mention. |
Note: The slug is automatically generated by the system and returned in follow-up landing page queries.
How Our API Deals With Incorrect Data
The API will attempt to cast or clean malformed values. If a parameter remains invalid after formatting, it will be ignored and the request will proceed with the remaining data.
Server Response Example in JSON
Success
{
"id": "9f8c6d28-5f4f-4eca-9b82-0d2a6f9a0d02",
"name" : "landing_page_name_1",
}