Skip to main content
Use email-templates to manage per-user and per-genie email template configurations. Templates control the layout and content of outgoing emails such as conversation reports.
Standard users manage their own templates. Admin users can read or write templates for any user by passing adminMode: true and the target userId. Team members write to the team owner’s templates by default; pass personal: true to write to your own account instead.

Get effective config

Returns the resolved template configuration for a given type. Looks up in priority order: genie-specific template → user-level template → system default. Returns null if no configuration exists at any level.
string
required
Must be "email-templates"
string
required
Must be "getConfig"
object
required
boolean
Whether the request succeeded.
object

List templates

Returns a paginated list of email templates for the authenticated user, optionally filtered by type or genie.
string
required
Must be "email-templates"
string
required
Must be "list" or "all" (both return the same result).
object
boolean
object

Get template

Retrieves a single email template by ID.
string
required
Must be "email-templates"
string
required
Must be "get"
string
required
The template UUID.
boolean
object

Create template

Creates a new email template record.
string
required
Must be "email-templates"
string
required
Must be "create"
object
required
boolean
object

Update template

Upserts a template identified by type and optionally agent_id. If a matching template already exists it is updated; otherwise a new one is created. Use create when you need the returned template object — update only returns the ID.
string
required
Must be "email-templates"
string
required
Must be "update"
object
required
boolean
object

Delete template

Permanently deletes an email template by ID.
string
required
Must be "email-templates"
string
required
Must be "delete"
string
required
The template UUID to delete.
boolean
object

Clone default template

Copies the system-default template of a given type into the user’s account. If the user already has a template of that type, its config is replaced with the default. Returns the cloned config.
string
required
Must be "email-templates"
string
required
Must be "cloneDefault"
object
required
boolean
object

Copies a logo image from an external storage location into HelpGenie-managed storage and returns the new URL. If the image is already in internal storage or the copy fails, the original URL is returned unchanged.
string
required
Must be "email-templates"
string
required
Must be "copyLogo"
object
required
boolean
object

Sync signature visibility

Propagates a genie’s signature enabled/disabled setting across its email template rows. For existing per-type rows the signature block is toggled in place ("patched"); rows that don’t yet exist are left alone ("no_template") — per-type rows are never force-created. The genie’s shared brand template (the type: null fallback used when no per-type override exists) is also patched when it exists; if it is absent and the genie has branding configured, a new brand template row is created with the signature block set accordingly ("forked"). Templates for other genies are never touched.
string
required
Must be "email-templates"
string
required
Must be "sync-signature-enabled"
object
required
boolean
object

Error codes