Endpoint

POST https://s5hxhnuksu6hwzu6dvnquqzw7q0nrqxe.lambda-url.us-east-1.on.aws/leads

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
required
session_id
created
array
created
email
string
required
email
bot_id
string
required
bot_id
name
string
required
name

Responses

  • 201 Successful Response
  • 422 Validation Error
null

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.