Skip to main content
POST
Duplicate 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

Path Parameters

chatbot
string
required

ID of the chatbot.

Body

application/json
name
string

The copy's name. Defaults to the agent's name followed by " (Copy)".

Required string length: 1 - 125

Response

The copy.

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