Skip to main content
POST
/
bot
Create a new bot
curl --request POST \
  --url https://api.closebot.com/bot \
  --header 'Content-Type: application/json' \
  --header 'X-CB-KEY: <api-key>' \
  --data '
{
  "name": "<string>",
  "templateId": "<string>",
  "importKdl": "<string>",
  "folderId": "<string>",
  "category": "<string>"
}
'
{
  "id": "<string>",
  "name": "<string>",
  "modifiedAt": "<string>",
  "modifiedBy": "<string>",
  "versions": [
    {
      "version": "<string>",
      "name": "<string>",
      "published": true,
      "modifiedAt": "2023-11-07T05:31:56Z",
      "modifiedBy": "<string>"
    }
  ],
  "sources": [
    {
      "id": "<string>",
      "category": "<string>",
      "key": "<string>",
      "name": "<string>",
      "tags": [
        {
          "name": "<string>",
          "approveDeny": true,
          "id": "<string>"
        }
      ],
      "channelList": [
        "<string>"
      ],
      "personaNameOverride": "<string>",
      "enabled": true
    }
  ],
  "personaIds": [
    "<string>"
  ],
  "favorited": true,
  "locked": true,
  "reschedulingEnabled": true,
  "category": "<string>",
  "folderId": "<string>",
  "followUpActive": true,
  "followUpSequences": [
    {
      "order": 123,
      "duration": 123,
      "unit": "<string>"
    }
  ],
  "smartFollowUp": true,
  "followUpRepeat": true,
  "followUpVarianceMinutes": 123,
  "followUpExtraPrompt": "<string>",
  "tools": [
    {
      "id": "<string>",
      "type": "<string>",
      "enabled": true,
      "options": {}
    }
  ]
}

Authorizations

X-CB-KEY
string
header
required

CloseBot API Key Authorization

Body

name
string | null

The name of the new bot

templateId
string | null

The template ID to use to create the new bot

importKdl
string | null

The KDL template to import into the new bot

folderId
string | null

The folder ID to place the new bot in

category
string | null

The category of the new bot

Response

Success

id
string | null
name
string | null
modifiedAt
string | null
modifiedBy
string | null
versions
object[] | null
sources
object[] | null
personaIds
string[] | null
favorited
boolean
locked
boolean
reschedulingEnabled
boolean
category
string | null
folderId
string | null
followUpActive
boolean
followUpSequences
object[] | null
smartFollowUp
boolean
followUpRepeat
boolean
followUpVarianceMinutes
integer<int32>
followUpExtraPrompt
string | null
tools
object[] | null