Webhook events
Soosh sends a POST to your webhook endpoint when something happens in your workspace. Pick the events in Settings > Webhooks, or with POST /v1/webhooks.
- Signed the Standard Webhooks way. Verify webhooks has the code.
- Answer with any
2xxwithin 10 seconds. Anything else is tried up to 11 times over about 52 hours. - An event can come more than once. Drop one whose
idyou’ve seen. - Events can arrive out of order. Order them by
atinmessage.status, byupdated_atwhere the object has one, and otherwise by the envelope’screated_at.
Webhook delivery has the request, the retries and when an endpoint is paused or turned off.
Events
Section titled “Events”Each group is a feature of your plan. Over the API, subscribing also needs the group’s scope.
Messages
message.statusMessage status changed
Occurs when An outgoing message is delivered, read or fails.
Own fieldsContacts
contact.createdContact created
Occurs when A new contact is added, or a deleted one comes back.
contactcontact.updatedContact updated
Occurs when A contact’s name, attributes, tags, opt-out or number changes.
Own fieldsTemplates
template.statusTemplate status changed
Occurs when WhatsApp reports a new status for a template.
Own fieldsChats
Broadcasts
broadcast.statusBroadcast status changed
Occurs when A broadcast’s status changes, starting when it is created.
broadcastNo event matches.
Testing. Test webhook in the app sends an event of type webhook.test, which you don’t subscribe to. Its data is {"test": true, "message": "This is a test event from Soosh"}.