Webhooks
How to publish an event to multiple webhook subscribers
Register endpoint subscriptions, send one event to matching receivers, and track the result of each delivery.
By SendMQ 1 min read
How does webhook fan-out work in SendMQ?
Publish an event once to the Webhooks API, and SendMQ creates a delivery for each enabled endpoint that matches the event type. A fulfillment service and a reporting service can both subscribe to order.shipped and receive the same business event independently.
Store the signing secret returned when registering each endpoint and configure its receiver to verify the signature before processing. Each receiver can then manage its own deduplication and outcome.
What should the event payload contain?
Include a stable event ID and the business resource identifier. Add a resource version when receivers need to recognize older events. Send only the fields subscribers need to handle the event. Publish via POST /v1/webhooks/deliver and reuse the same idempotency key and payload if the submission times out.
{
"event_type": "order.shipped",
"payload": {
"event_id": "evt-481",
"order_id": "order-123",
"order_version": 7
}
}How do you verify that subscribers received it?
Save each delivery summary from the publication response and inspect deliveries individually. The job ID identifies the API record you can inspect or replay. If publication returns NO_MATCHING_ENDPOINTS, confirm that at least one endpoint is enabled and subscribes to the event type you sent.
When one receiver fails while others succeed, keep the successful results and investigate the affected endpoint. After correcting the problem, replay that delivery if the original event is still valid. Check the downstream business state as well as the HTTP result so you know the shipment update reached the intended system.