Mudawin

Part: For developers · Chapter 40 of 41

Webhooks

Instead of your system asking "has anything happened?" every minute for ever, tell us once where toreach you and we post as each thing happens.

This chapter describes screens only an administrator can open. Read it to know what happens there, even if those screens are not visible to you.

Set up: Organization settings → Developers → Outgoing notifications. https only.


The five events

When
meeting.completed the meeting ended and its recording has been processed
minutes.published the minutes were published
task.created somebody committed to something
task.completed a commitment was met
decision.recorded a decision was recorded

Why are meeting.completed and minutes.published separate? They are different moments: minutes are reviewed and edited before they are published. A system that circulates minutes wants the second; one that logs attendance wants the first. Merging them would make each wait for something it does not care about.

Tick nothing and you get them all — because somebody who ticked nothing meant "tell me about all of it", not "create a subscription that never fires".


What arrives

POST /your-endpoint
Content-Type: application/json
X-Mudawin-Event: minutes.published
X-Mudawin-Delivery: 4821
X-Mudawin-Signature: 9f2c…

{
  "event": "minutes.published",
  "occurred_at": "2026-08-09T09:12:00Z",
  "organization_id": 1,
  "data": {
    "meeting_id": 6014,
    "title": "Budget review",
    "published_by": "Mohammed Nayel",
    "published_at": "2026-08-09T09:12:00Z"
  }
}

Verify the signature

X-Mudawin-Signature = HMAC-SHA256( the body exactly as you received it , your secret )

In Python:

import hmac, hashlib

expected = hmac.new(secret.encode(), raw_body, hashlib.sha256).hexdigest()
if not hmac.compare_digest(expected, request.headers["X-Mudawin-Signature"]):
    abort(401)

Over the raw body, before you parse it. Parse the JSON and re-serialise it and the field order or a date format shifts, the signature no longer matches, and it looks to you as though somebody is impersonating us when all that happened is a library reprinting the same data.

Without verifying, anybody who learns your URL can post whatever they like to it and be believed.


Answer quickly

Any 2xx means "received". The timeout is ten seconds.

If your work takes longer, answer 202 and do it afterwards. Do not hold us: we deliver in batches, and one slow endpoint holds a slot forty-nine other notifications are waiting for.


If it does not arrive

We retry five times over roughly a quarter of an hour: after 30 seconds, then 2 minutes, then 5, then 15. That covers a deploy, a restart and a brief outage — the three things that actually happen.

After the fifth we stop, and the row remains. Recent attempts and why they failed are on the Developers page.

Why keep the failures rather than delete them? Because "we sent that, you never took it" is a conversation somebody will have one day, and it needs evidence.


An event may arrive twice

We retry, and a delivery may have succeeded with the response lost on the way back. Make your handling idempotent — X-Mudawin-Delivery is how you recognise a repeat.

That is a choice. The alternative is sending exactly once, which loses the message every time the network stumbles for a second. A duplicate you know how to handle beats a silence you never learn about.