upsert_email_template
Create or update email templates for your project. Define subject, HTML body, plain text fallback, and variable schema.
Instructions
Create or update an email template. For new templates 'name' is required. System templates only allow editing subject, body_html, body_text, and variables_schema.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | ||
| slug | Yes | Template slug (lowercase, hyphens/underscores allowed) | |
| name | No | Display name (required for new templates) | |
| category | No | Category (e.g. 'auth', 'notification', 'marketing', 'custom') | |
| subject | No | Email subject line (supports {{variable}} placeholders) | |
| body_html | No | HTML email body (supports {{variable}} placeholders) | |
| body_text | No | Plain-text fallback body | |
| variables_schema | No | Variable definitions with sample values for preview |