Subscriptions
When massive messages are sent using HSM, notifications can be generated so that you can subscribe to that relevant information and your team can manage this data of each message using webhooks.
Last updated
When massive messages are sent using HSM, notifications can be generated so that you can subscribe to that relevant information and your team can manage this data of each message using webhooks.
Last updated
Webhook is a method for one system to notify another system or application about events or updates in real time. Firstly, you should verify if there are any subscriptions configured to be sure that it is already set in your bot or not in order not to duplicate subs. Afterward, you can subscribe to events you need.
delivered_channel: The template was sent via WhatsApp.
delivered_user: The template was sent to the user.
failed: The template delivery failed.
read: The user read the template. This event will only be received if the user has blue double-checks enabled on WhatsApp.
reply: The user replied to the template
GET
https://api.jelou.ai/v1/bots/:botId/events/webhook
This endpoint allows you to get information from previous subscriptions
Name | Type | Description | Required |
---|---|---|---|
Name | Type | Description | Required |
---|---|---|---|
Example
Response
POST
https://api.jelou.ai/v1/bots/:botId/events/webhook
This endpoint allows you to subscribe to your webhook
Example
Response
Name | Type | Description | Required |
---|---|---|---|
Name | Type | Description | Required |
---|---|---|---|
Name | Type | Description | Required |
---|---|---|---|
botId
string
ID of the Bot.
Y
Authentication
string
Authentication token
Y
botId
string
ID of the Bot.
Y
webhooks
array
Array of webhook objects, each containing a URL and the events to subscribe to.
Y
url
string
Webhook URL
Y
events
array
List of event types that the webhook will subscribe to (delivered_channel, delivered_user, failed, read, reply)
Y
Authentication
string
Authentication token
Y