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
created
bot_id
name
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.