Leads
Create lead
Endpoint
Request Headers
The API request must include the following headers:
x-api-key: <Your-Secret-Key>
- The secret key for authenticating the API request.
Request Body
The request body should contain the following parameters:
session_id
string
requiredsession_id
created
array
created
email
string
requiredbot_id
string
requiredbot_id
name
string
requiredname
Responses
-
201 Successful Response
-
422 Validation Error
Example Request
Error Handling
If there are any errors during the API request, appropriate HTTP status codes will be returned along with error messages in the response body. Make sure to handle these errors gracefully in your application.
That’s it! You should now be able to create a chatbot using the create API.