Skip to main content
PATCH
Update an email channel's template
Send null or an empty string to reset the address to the default template. A template without {{content}} is rejected with 400. Requires the email:write scope. See Reply Templates for every variable, including the per-agent {{agent_name}}, {{agent_title}} and {{agent_email}}.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

emailChannelId
string
required

Email channel ID

Body

application/json
html_template
string | null

Full HTML template wrapping outbound emails. When null/empty, falls back to a built-in default. Required slot: {{content}}. Optional slots: {{ticket_number}}, {{zendesk_ticket_id}}, {{session.language}}, {{agent_name}}, {{agent_title}}, {{agent_email}}, {{quoted_content}}. Agent slots are empty while only the AI has handled the session; {{agent_email}} is also empty when an alias masks the agent (showing first names only does not hide it). Supports {{#if expr}}...{{else}}...{{/if}} conditionals.

Response

Default Response

id
string
required
email
string
required
connection_status
enum<string>
required
Available options:
connected,
failed,
pending
is_default
boolean
required
sender_name
string | null
required
html_template
string | null
required
sender_signature
string | null
required