Skip to main content
POST
Create template

Body

Request body for creating a workflow template

name
string
required

User-friendly name for the template

Required string length: 1 - 255
variables
object[]
required

Variable definitions for this template. Use {{variable_name}} in workflow text fields.

workflow
object
required
description
string

Description of what this template does

applicableMediums
enum<string>[] | null

Conversation types where this template can be used: PHONE, SMS, CHAT, or GHL. Set null or an empty array to allow all conversation types. If omitted, new templates allow all conversation types and updates keep the current selection.

Available options:
CHAT,
PHONE,
GHL,
SMS
Example:
officeHoursAvailability
enum<string> | null

When this template can be used, based on your office hours. OPEN allows use during office hours; CLOSED allows use outside office hours. Set null to allow use at any time. If omitted, new templates are available at any time and updates keep the current setting.

Available options:
OPEN,
CLOSED

Response

Response containing the created template

success
enum<boolean>
required
Available options:
true
data
object
required