curl --request GET \
--url https://api.closebot.com/lead \
--header 'X-CB-KEY: <api-key>'{
"total": 123,
"results": [
{
"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
}
]
}
],
"page": 123,
"pageSize": 123
}curl --request GET \
--url https://api.closebot.com/lead \
--header 'X-CB-KEY: <api-key>'{
"total": 123,
"results": [
{
"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
}
]
}
],
"page": 123,
"pageSize": 123
}CloseBot API Key Authorization
The page number.
The page size.
The source ID.
The lead ID.