curl --request GET \
--url https://api.closebot.com/bot/{botId}/testSession \
--header 'X-CB-KEY: <api-key>'{
"leads": [
{
"id": "<string>",
"name": "<string>",
"contactId": "<string>",
"lastMessageTime": "2023-11-07T05:31:56Z",
"lastMessage": "<string>",
"lastMessageDirection": "<string>",
"lastMessageBotId": "<string>",
"mostRecentFailureReason": "<string>",
"mimicSourceId": "<string>",
"source": {
"name": "<string>",
"id": "<string>"
},
"tags": [
"<string>"
],
"fields": [
{
"field": "<string>",
"value": "<string>"
}
],
"instances": [
{
"botId": "<string>",
"botVersion": "<string>",
"followUpTimezoneKind": "<string>",
"followUpTimezone": "<string>",
"followUpTime": "2023-11-07T05:31:56Z",
"isSmartFollowUpTime": true
}
]
}
],
"total": 123
}curl --request GET \
--url https://api.closebot.com/bot/{botId}/testSession \
--header 'X-CB-KEY: <api-key>'{
"leads": [
{
"id": "<string>",
"name": "<string>",
"contactId": "<string>",
"lastMessageTime": "2023-11-07T05:31:56Z",
"lastMessage": "<string>",
"lastMessageDirection": "<string>",
"lastMessageBotId": "<string>",
"mostRecentFailureReason": "<string>",
"mimicSourceId": "<string>",
"source": {
"name": "<string>",
"id": "<string>"
},
"tags": [
"<string>"
],
"fields": [
{
"field": "<string>",
"value": "<string>"
}
],
"instances": [
{
"botId": "<string>",
"botVersion": "<string>",
"followUpTimezoneKind": "<string>",
"followUpTimezone": "<string>",
"followUpTime": "2023-11-07T05:31:56Z",
"isSmartFollowUpTime": true
}
]
}
],
"total": 123
}CloseBot API Key Authorization
The bot ID.
The offset.
The maximum count.