POST
/
businesses
/
{id}
/
email_templates
/
ai

This endpoint can take a while to return an email template. Streaming responses coming soon

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

id
string
required

The ID of the business

Body

application/json
description
string
required

A description of the content that you'd like to include the email template

Response

200 - application/json
attachments
object[]
required

An array of attachment associted with the email template. Will be sent with every email built from this template

body
string | null
required

The body of the email template. May be null. Variables are supported via {{ variableName }}

id
string
required

The ID of the email template

name
string
required

The name of the email template

subject
string
required

The subject of the email template. Variables are supported via {{ variableName }}

template_html
string | null
required

The HTML representation of the rich text email. May be null

template_json
any | null
required

The JSON representing the rich text email template. May be null