Leads

Get all leads for a specific chatflow

get

Retrieve all leads associated with a specific chatflow

Authorizations
Path parameters
idstringRequired

Chatflow ID

Responses
200
Successful operation
application/json
get
GET /leads/{id} HTTP/1.1
Host: 
Authorization: Bearer JWT
Accept: */*
[
  {
    "id": "cfd531e0-82fc-11e9-bc42-526af7764f64",
    "name": "John Doe",
    "email": "[email protected]",
    "phone": "+1234567890",
    "chatflowid": "7c4e8b7a-7b9a-4b4d-9f3e-2d28f1ebea02",
    "chatId": "d7b0b5d8-85e6-4f2a-9c1f-9d9a0e2ebf6b",
    "createdDate": "2024-08-24T14:15:22Z"
  }
]

Create a new lead in a chatflow

post

Create a new lead associated with a specific chatflow

Authorizations
Body
idstring · uuidOptional

Unique identifier for the lead

Example: cfd531e0-82fc-11e9-bc42-526af7764f64
namestringOptional

Name of the lead

Example: John Doe
emailstringOptional

Email address of the lead

Example: [email protected]
phonestringOptional

Phone number of the lead

Example: +1234567890
chatflowidstringOptional

ID of the chatflow the lead is associated with

Example: 7c4e8b7a-7b9a-4b4d-9f3e-2d28f1ebea02
chatIdstringOptional

ID of the chat session the lead is associated with

Example: d7b0b5d8-85e6-4f2a-9c1f-9d9a0e2ebf6b
createdDatestring · date-timeOptional

Date and time when the lead was created

Example: 2024-08-24T14:15:22Z
Responses
200
Lead created successfully
application/json
post
POST /leads HTTP/1.1
Host: 
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 253

{
  "id": "cfd531e0-82fc-11e9-bc42-526af7764f64",
  "name": "John Doe",
  "email": "[email protected]",
  "phone": "+1234567890",
  "chatflowid": "7c4e8b7a-7b9a-4b4d-9f3e-2d28f1ebea02",
  "chatId": "d7b0b5d8-85e6-4f2a-9c1f-9d9a0e2ebf6b",
  "createdDate": "2024-08-24T14:15:22Z"
}
{
  "id": "cfd531e0-82fc-11e9-bc42-526af7764f64",
  "name": "John Doe",
  "email": "[email protected]",
  "phone": "+1234567890",
  "chatflowid": "7c4e8b7a-7b9a-4b4d-9f3e-2d28f1ebea02",
  "chatId": "d7b0b5d8-85e6-4f2a-9c1f-9d9a0e2ebf6b",
  "createdDate": "2024-08-24T14:15:22Z"
}

Last updated