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

Authorizations

X-CB-KEY
string
header
required

CloseBot API Key Authorization

Path Parameters

botId
string
required

The bot ID.

Response

Success

leadId
string | null

The lead ID of the test session

sourceId
string | null

The source ID of the test session