Leads
Retrieve all leads associated with a specific chatflow
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired
Chatflow ID
Responses
200
Successful operation
application/json
400
Invalid ID provided
404
Leads not found
500
Internal server error
get
/leads/{id}Create a new lead associated with a specific chatflow
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
idstring · uuidOptionalExample:
Unique identifier for the lead
cfd531e0-82fc-11e9-bc42-526af7764f64namestringOptionalExample:
Name of the lead
John DoephonestringOptionalExample:
Phone number of the lead
+1234567890chatflowidstringOptionalExample:
ID of the chatflow the lead is associated with
7c4e8b7a-7b9a-4b4d-9f3e-2d28f1ebea02chatIdstringOptionalExample:
ID of the chat session the lead is associated with
d7b0b5d8-85e6-4f2a-9c1f-9d9a0e2ebf6bcreatedDatestring · date-timeOptionalExample:
Date and time when the lead was created
2024-08-24T14:15:22ZResponses
200
Lead created successfully
application/json
400
Invalid request body
422
Validation error
500
Internal server error
post
/leadsLast updated