Skip to main content
POST
/
bot
/
{botId}
/
testSession
/
message
Send a message to a test session
curl --request POST \
  --url https://api.closebot.com/bot/{botId}/testSession/message \
  --header 'Content-Type: application/json' \
  --header 'X-CB-KEY: <api-key>' \
  --data '
{
  "leadId": "<string>",
  "message": "<string>"
}
'

Authorizations

X-CB-KEY
string
header
required

CloseBot API Key Authorization

Path Parameters

botId
string
required

The bot ID.

Body

leadId
string | null

The lead ID

message
string | null

The message to send

Response

200

Success