Webhooks
Webhooks tell other systems when something happens on the site, such as a page that went live or an order that was paid. SHADE sends its own events, and a module says which events it sends; an admin chooses where each one goes, on the Webhooks screen. Each message is signed, so the other system can check it came from this site, and one that does not get through is tried again.
What users can do
Admins:
- Add an address (it starts with
https://), with a description, and pick its events: SHADE's own (an entry published, unpublished or deleted, a file uploaded or deleted, a build finished…) and those the modules that are on send. - Tick Also send drafts to send the entries' saved drafts too. A warning says what that means: the other system gets to know about work that isn't public yet.
- Copy the address's signing secret when it is made. It is shown once.
- Change an address, its events, or switch it off; remove it, with its delivery log.
- Read each address's delivery log: every event sent there, how many tries it took, what the address answered, and why the last try failed. Send an event that did not get through again.
Who may do it
| Action | Permission | Roles |
|---|---|---|
| Everything on the Webhooks screen | packages.manage (where the modules' data goes is for whoever decides which modules run; no custom role can have it) | admin |
In the admin

Webhooks is in the settings area's Connections group, for admins.
- A table of the addresses: the address and its description, its events, and how the last message went (delivered, waiting to be sent, sending or not delivered, and when), or Off. Each row has Log, Change and Remove (asks first).
- Change opens the same form with the address's values and its switch. When another admin changed the address after you opened it, the save is refused and nothing is lost: the form shows "Someone else changed this meanwhile" with Reload, which loads it as it is now (what was changed in the form goes). So an address someone switched off is not switched back on by a form opened before.
- Add address opens a form: Address, Description, Also send drafts, and Events, one box per event with what it means; an event that sends personal data says so. The drafts event is offered only once Also send drafts is ticked, and unticking it takes that event off. Add stays off until an address and an event are given. Then the signing secret is shown with Copy, and how the other system checks it.
- Log opens the address's delivery log below the table, 50 a page, newest first: when, the event, and how it went (with the tries, the answer, and why it failed). An event that did not get through has Send again.
What the other system receives
Each message carries the event (such as entries.entry.published or commerce.order.paid), when it happened and
what it is about. For an entry that is its collection, id, version, language, status, title and address, never its
fields: the other system reads the content over the content API. For a module's event it is what the module sent (for
the shop: the order, see Shop). It follows the
Standard Webhooks spec: give the signing secret to whoever builds the other
system, so it can check each message with a Standard Webhooks library and refuse old ones. A message keeps its id on
every try, so the other system takes it once. The other system confirms with a success answer; anything else counts
as not delivered.
Rules and limits
- Only
https://addresses outside this server's own network; a redirect is not followed. Each try waits 10 seconds at most. - A message that does not get through is tried again after 1, 2, 4, 8 and 16 minutes: six tries in about half an hour. Then it is not delivered, its error is in the error log, and the module's health on the Modules page counts it until it is sent again.
- When an address's server keeps failing (five or more of them in a minute, at least half of its calls (a timeout, no connection, a host not found, a 5xx answer or a 429)), SHADE stops calling it for a while: 30 seconds at first, longer each time it is still down, at most 5 minutes. Its events wait meanwhile, shown as waiting; those waits do not use up their six tries (for up to a day), and nothing goes to the error log.
- An event is sent only when the change it is about is saved: an order that could not be placed sends nothing. An address gets each event once, also when the background work is interrupted and runs it again.
- The error log's own event is never sent to webhooks: a failing address would feed it.
- The delivery log keeps what each event carried for 30 days by default (Webhook delivery log under Data retention). Events that name a person are listed in their data, and deleted with it (Privacy).
- A module sends events only with its
webhookscapability, shown on the Modules page with its events. The shop's is optional: switch it on there to send its events.
For developers
The code and its tests: shade/features/webhooks/README.md in the shade repository.