This section contains the Leads and Chat API references
PUT
https://api.v7. Convertalk.com/inbox/direct/lead
As soon as any user opens up the Bot, It creates one UUId; pass the same along with the other required details to create and update the lead’s details.
Name | Type | Description |
---|---|---|
x-bp-token* | String | API Token |
Name | Type | Description |
---|---|---|
uuid* | String | Unique ID of a chat user |
botId* | String | Unique ID of the bot |
customerId* | String | Unique ID of the customer account |
agentId | String | Unique ID of the agent assigned |
name | String | Name of the lead |
String | Email of the lead | |
phone | String | Phone number of the lead |
dialCode | String | Dial Code including ”+” sign |
notes | String | Additional notes for the chat |
status | String | Valid status for the chat. Available values: ‘OPEN’, ‘INPROGRESS’, ‘REVIEW’, ‘ONHOLD’, ‘DEPENDANCY’, ‘CLOSED’ |
picture | String | A valid image HTTP URL |
tags | String | Additional tags for the chat |
attributes | String | Custom attributes for the chat |
GET
https://api.v7. Convertalk.com/inbox/direct/chats
To get the listing of the leads and its meta data, Hit the below API with mandatory details.
Name | Type | Description |
---|---|---|
botId* | String | Unique ID of the bot |
customerId* | String | Unique ID of the customer account |
page* | String | Page number |
type* | String | ”lead” to fetch only leads “non-lead” to fetch non lead chats |
Name | Type | Description |
---|---|---|
x-bot-token* | String | API Token |