Skip to main content
POST
Create a message template

Authorizations

x-api-key
string
header
required

Body

application/json
name
string
required
Minimum string length: 1
channel
enum<string>
required
Available options:
EMAIL,
LINKEDIN,
WHATSAPP,
LINKEDIN_INMAIL,
LINKEDIN_CONNECTION
messages
string[]
required

One entry per message in the sequence.

Minimum array length: 1

Plain prompt text. Placeholders: {fieldId} for contact/company/CRM/formula/notes fields (discover via the contact/company field-metadata endpoints), {aiResearch:<id-or-name>}, {aiSnippet:<id-or-name>}, {aiMessage:<id-or-name>} for AI entity references. Validation is strict: unknown or ambiguous tokens return 400 with the invalid tokens and a sample of valid ones. Escape literal braces by doubling them ({{ and }}).

description
string | null
subject
string | null

Subject line for EMAIL / LINKEDIN_INMAIL channels.

folderId
number | null
customPromptFieldValues
object[]

Response

Message template created successfully

status
enum<string>
required
Available options:
success
message
string
required
data
object

The created AI variable entity.