POST
request on when an event or more is triggered.
Key | Type | Description |
---|---|---|
eventType | string | Event type |
chatbotId | string | Chatbot ID |
payload | Object | Payload of the event. Learn more |
leads.submit
: When a customer submit his info (Name, Email, and Phone) to your chatbot.leads.submit
:x-chatbase-signature
for securing your endpoint from spam from anyone knows your endpoint.
You can achieve this by using SHA-1 (Secure Hash Algorithm 1) function to generate a signature for the request and compare it with x-chatbase-signature
found in the request headers. If the are identical then the request is from Chatbase.