Skip to main content
GET
/
bot
/
{id}
/
export
Export a bot
curl --request GET \
  --url https://api.closebot.com/bot/{id}/export \
  --header 'X-CB-KEY: <api-key>'
{
  "id": "<string>",
  "kdl": "<string>",
  "version": "<string>"
}

Authorizations

X-CB-KEY
string
header
required

CloseBot API Key Authorization

Path Parameters

id
string
required

The bot ID.

Query Parameters

botVersion
string

The bot version (x.y.z). If not provided, the latest version is exported.

Response

Success

id
string | null

The bot ID

kdl
string | null

The KDL for the bot

version
string | null

The version of the bot