Skip to main content
POST
Create a chatbot

Authorizations

Authorization
string
header
required

A project API key, created in the dashboard.

Headers

Idempotency-Key
string

A unique key that makes the request safe to retry, such as a V4 UUID. 1 to 255 printable ASCII characters.

Required string length: 1 - 255

Body

application/json

Unknown parameters return 422.

name
string
required
Required string length: 1 - 125
template_id
string | null

ID of a template from List chatbot templates to start from, instead of the default flow.

timezone
string

An IANA time zone name, such as America/Toronto. Offsets and abbreviations aren't accepted.

Maximum string length: 64

Response

The new chatbot.

A flow-builder chatbot. You build and publish its flow, including the AI settings of its AI blocks, in the dashboard.

object
any
required
id
string
required

Unique identifier for the chatbot. Use it as agent_id in endpoints for resources that belong to the chatbot, such as contacts and labels.

Example:

"3132353852"

name
string
required
Example:

"Order bot"

platform
enum<string>
required

What the chatbot was built for. The API creates web chatbots. WhatsApp chatbots are created and connected in the dashboard.

Available options:
web,
whatsapp
status
enum<string>
required

Suspended chatbots can be retrieved and deleted, but not updated or duplicated.

Available options:
active,
suspended
published
boolean
required

Whether the flow is published. A chatbot can only chat once its flow is published in the dashboard.

timezone
string | null
required

An IANA time zone name.

Example:

"America/Toronto"

created_at
string<date-time> | null
required