Skip to main content
POST
/
bot
/
preview-import
Validate Flow
curl --request POST \
  --url https://api.closebot.com/bot/preview-import \
  --header 'Content-Type: application/json' \
  --header 'X-CB-KEY: <api-key>' \
  --data '
{
  "kdl": "<string>"
}
'
{
  "valid": true,
  "error": "<string>",
  "nodeCount": 123,
  "nodeTypes": [
    "<string>"
  ],
  "hasConversationReason": true,
  "hasBusinessInformation": true,
  "sourceVariableCount": 123,
  "customToolCount": 123,
  "errors": [
    "<string>"
  ],
  "warnings": [
    "<string>"
  ]
}

Authorizations

X-CB-KEY
string
header
required

CloseBot API Key Authorization

Body

kdl
string | null

The raw KDL content to preview

Response

Success

valid
boolean
error
string | null
nodeCount
integer<int32>
nodeTypes
string[] | null
hasConversationReason
boolean
hasBusinessInformation
boolean
sourceVariableCount
integer<int32>
customToolCount
integer<int32>
errors
string[] | null
warnings
string[] | null