Actions138
- Account Actions
- Contact Actions
- List Actions
- Campaign Actions
- Webhook Actions
- Segment Actions
- Report Actions
- Email Actions
- Custom Attribute Actions
- Sender Actions
- Template Actions
- Sub-Account Actions
- Log Actions
- User Actions
- Domain Actions
- DKIM Actions
- Form Actions
- Token Actions
- Interest Actions
- Tags Actions
- Suppressed Email Actions
- Links Actions
Template → Create
AI-generatedSummary
Create a new template in Cakemail.
Inputs
- accountId — Optional: Specify an account ID for multi-tenant operations. If not provided, uses the authenticated account.
- name (required) — Name of the template
- htmlMessage (required) — HTML content of the template
- additionalFields — Additional fields such as text message, description, and tags.
Output shape
no body — success/failure only
On success, returns a confirmation of template creation.
Examples
Example 1: Create a template with both HTML and text versions for email campaigns.
Account ID: null, Template Name: 'Weekly Newsletter', HTML Message: '