Docs
Get Leads
Get Leads
Learn how to get leads from your chatbot
Get leads
The Get Leads API endpoint allows you to retrieve leads generated from a chatbot's conversations. By using this endpoint, you can obtain names, phone numbers, emails, and remarks from users who interact with your chatbots.
Path parameters
Parameter | Type | Required | Description |
---|---|---|---|
bot_uid | string | Yes | The unique ID of the chatbot for which you want to retrieve leads. |
Query parameters
Parameter | Type | Required | Description |
---|---|---|---|
bot_uid | string | Yes | The unique ID of the chatbot for which you want to retrieve leads. |
start_date | string | Optional | Represents the start date of the date range for fetching conversations. The date should be in "year-month-day" format (e.g. 2023-11-19). |
end_date | string | Optional | Represents the end date of the date range for fetching conversations. The date should be in "year-month-day" format (e.g. 2023-11-19). |
page | int | Optional | Specifies the page number of the results for pagination. Default is 1. |
page_size | int | Optional | Indicates the number of results per page, which is also used for pagination. Default is 10. |
Returns
Data
Field | Type | Description |
---|---|---|
leads | list | A list of Leads. |
page | number | Current page. |
page_size | number | Current page size. |
total | number | The total number of leads for this chatbot. |
Lead
Field | Type | Description |
---|---|---|
bot_uid | string | The unique ID of the chatbot. |
conversation_uid | string | The conversation ID from which this lead originated. |
created_at | string | The time when the lead was created. |
string | ||
name | string | |
phone | string | |
remark | string |