POST
/
chatbots
curl --request POST \
  --url https://api.chatling.ai/v2/chatbots \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "template_id": 123
}'
{
    "status": "success",
    "data": {
        "id": "9761342719",
        "name": "My chatbot",
        "version": "2.0",
        "visibility": "public",
        "created_at": "2024-06-17T12:00:00+00:00"
    }
}

Request parameters

Body

name
string
required

The chatbot name.

template_id
integer

The ID of the chatbot template to use. You can get the list of available templates using the List chatbot templates endpoint.

Leave blank to create a chatbot from scratch.

Response

status
string

The status of the request. Will be success if the request was successful, otherwise error.

data
object
{
    "status": "success",
    "data": {
        "id": "9761342719",
        "name": "My chatbot",
        "version": "2.0",
        "visibility": "public",
        "created_at": "2024-06-17T12:00:00+00:00"
    }
}