Email Header
An Email Header is a reusable visual block placed at the very top of transactional email notifications sent by Gamopanda (such as streak milestone rewards, challenge completions, or failure notifications). It allows you to maintain consistent branding, logos, and header banners across different email templates.
The htmlContent field is localisable. Pass a languageCode query parameter when updating or fetching the email header to manage translations for international customers.
How it works
- Create an email header — define a name, description, status, and write the custom HTML content for your header.
- Include brand assets — embed images (like your brand's logo), styling, and custom background gradients inside the HTML block.
- Use template variables — use curly braces
{{ }}to insert dynamic values. E.g.,{{$account.name}}dynamically inserts your account's name. - Link to email templates — associate the email header with an Email Template by setting its
emailHeaderIdfield. - Send branded emails — when Gamopanda dispatches transactional emails using that template, the header is dynamically prepended to the email body.
Fields
Basic information
| Field | Type | Required | Max length | Description |
|---|---|---|---|---|
name | string | ✅ | 256 | The name of the email header |
description | string | ❌ | 1 024 | A brief description of the email header |
status | enum | ✅ | — | draft · live · paused |
Content settings
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
htmlContent | string | ❌ | (Default template) | The HTML content of the email header. Supports template variables using curly braces {{ }}. This field is localisable. |
The default htmlContent is set to:
Code
Template variables
The htmlContent field supports template variables resolved at runtime using curly braces {{ }}:
| Variable | Description | Example resolved value |
|---|---|---|
{{$account.name}} | The name of your Gamopanda account | Acme Shop |
Real-world examples
🛍️ E-commerce — Default Brand Header
Used for standard customer communications.
Code
🎄 Seasonal — Festive Holiday Header
Applied to emails sent during seasonal promotion periods.
Code
Access & permissions
| Caller | Allowed operations | Notes |
|---|---|---|
| Admin | CREATE · GET · LIST · UPDATE · DELETE | Full control over email headers |
| End user | (none) | No access |
| Guest user | (none) | No access |
Related resources
| Resource | Description |
|---|---|
| Email Footer | Reusable HTML footer appended to transactional emails |
| Email Template | Custom templates wrapping the notification message body |
| Email Notification | Subscribed transactional email notification configurations |
API reference
See the API Reference for full request/response schemas and interactive examples for:
GET /schema/email_header/record— list email headersPOST /schema/email_header/record— create an email headerGET /schema/email_header/record/{id}— get an email header by IDPATCH /schema/email_header/record/{id}— update an email headerDELETE /schema/email_header/record/{id}— delete an email header