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
Was this helpful?
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
Was this helpful?
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 to be sure that it is already set in your bot or not in order not to duplicate subs. Afterward, you can 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
botId
string
ID of the Bot.
Y
Authentication
string
Authentication token
Y
Example
Response
POST
https://api.jelou.ai/v1/bots/:botId/events/webhook
This endpoint allows you to subscribe to your webhook
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
Example
Response