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.
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.
Events Allowed
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.
{"message": ["The Bot could not be found at the moment." ],"statusMessage":"failed","status":0,"error": {"code":"E1019","key":"BOT_NOT_FOUND","description":"Error to be thrown when trying to get a Bot.","developerMessages": {"es":"El botId no se encuentra en la base de datos o ha sido eliminado.","en":"The botId is not found in the database or has been deleted.","pt":"A botId não é encontrada no banco de dados ou foi apagada." },"clientMessages": {"es":"El Bot no se pudo encontrar por el momento.","en":"The Bot could not be found at the moment.","pt":"A Bot não pôde ser encontrada no momento." } }}
{"message": ["We are having trouble processing your request. Please try again later." ],"statusMessage":"failed","status":0,"error": {"code":"E0000","key":"UNKNOWN_ERROR","description":"Error to be thrown when it couldn't be determined the reason of failure","developerMessages": {"es":"Error inesperado occurido, revisar logs.","en":"Unexpected error occurred, check logs." },"clientMessages": {"es":"Estamos teniendo problemas procesando la solicitud. Por favor intenta mas tarde.","en":"We are having trouble processing your request. Please try again later." } }}
{"message": ["The Bot could not be found at the moment." ],"statusMessage":"failed","status":0,"error": {"code":"E1019","key":"BOT_NOT_FOUND","description":"Error to be thrown when trying to get a Bot.","developerMessages": {"es":"El botId no se encuentra en la base de datos o ha sido eliminado.","en":"The botId is not found in the database or has been deleted.","pt":"A botId não é encontrada no banco de dados ou foi apagada." },"clientMessages": {"es":"El Bot no se pudo encontrar por el momento.","en":"The Bot could not be found at the moment.","pt":"A Bot não pôde ser encontrada no momento." } }}
{"message": ["We are having trouble processing your request. Please try again later." ],"statusMessage":"failed","status":0,"error": {"code":"E0000","key":"UNKNOWN_ERROR","description":"Error to be thrown when it couldn't be determined the reason of failure","developerMessages": {"es":"Error inesperado occurido, revisar logs.","en":"Unexpected error occurred, check logs." },"clientMessages": {"es":"Estamos teniendo problemas procesando la solicitud. Por favor intenta mas tarde.","en":"We are having trouble processing your request. Please try again later." } }}