Discussions

Ask a Question
Back to All

Webhook event not triggering when I send SMS

I have set up a webhook and an event for both directions for all of the organisation in the sandbox. Using the ListWebhooks and ListEvents API methods, everything looks in order to me.

{ "items": [ { "direction": "all", "enabled": true, "id": "XXXXXXXXX9376128", "webhook": { "hook_url": "[domain]/index.php?option=com_smsarchive&task=receiveSMS&output=raw&coid=43", "id": "XXXXXXXX785856", "signature": { "algo": "HS256", "secret": "XXXXXXXXXX", "type": "jwt" } } } ] }

{ "items": [ { "hook_url": "[domain]/index.php?option=com_smsarchive&task=receiveSMS&output=raw&coid=43", "id": "XXXXXXXX785856", "signature": { "algo": "HS256", "secret": "XXXXXXXXX", "type": "jwt" } } ] }

But sending messages doesn't trigger the event to my webhook uri.
It has worked just 2 random times, and I can't see any pattern with the two times it has worked, and I can't get it to work reliably. I assume I can just send myself messages (or between my personal Dialpad number and the Office main number).

Can someone check my setup and figure out why these webhooks events are not being triggered?

My API key for the sandbox ends in fQDJ5Gvr and I've left the final digits of the webhook id and event id in case they are useful. The account is linked to the email address below.