Baack can tell your other systems the moment something changes, across more than 40 kinds of record, from a page's publication to a customer's record being deleted. Here's what that can do for each team, the behavior worth planning for, and how it counts towards your usage.
What is a webhook?
A webhook is a web request one system sends to another when something happens. Without one, your system has to keep asking Baack's API whether anything has changed, and most of those requests find nothing. With one, it hears only when there's something to hear. In our tests, messages arrived 0.2 to 1.6 seconds after the change.
What each team can do with them
A subscription names one kind of record and the events to hear about: created, updated, deleted, or all three. Because that covers most of what Baack holds, the uses go well beyond rebuilding a website.
- Compliance: when a person's identity is deleted, remove their details from your other systems
- Security: check each new permission against your policy, and schedule key rotation when an API client is created
- Security: know when a bearer token is issued or revoked, or when someone revokes a link to a tool such as Xero or HubSpot
- Sales: when a lead or customer company is created, assign a task to someone on the team, and follow each deal as its status changes
- Support: when a major case becomes a project, assign a team, and when a task is done, mark the tasks waiting on it as ready
- Content: when someone changes the copy, create a review task, and when a price changes, recalculate your margins
- Communities: moderate new posts, or connect a chat bot or AI assistant to a message thread
- Finance: when an invoice's status changes, email the person paying it, and when its lines change, check the tax
Content webhooks fire on drafts, not just on what's live
Baack never overwrites content: an edit saves a new draft, and a content item's webhook gives you that draft. So item webhooks fire while people are still working, before anyone has published. That's right for starting a review, but wrong for rebuilding a site, which would run on every save and show nothing new.
To react to publishing, subscribe to the entity instead, as its webhook includes changes to its publication state. It also covers the entities behind companies and groups, so read the entity to check it's one you publish. A rendered entity view has no webhook of its own, because it's put together when it's read.
What a message holds, and what it leaves out
A message says what happened and where to look, and that's all. It never carries the record's content. Your system reads that from the API with its own permissions, so a webhook can't show a receiver anything it isn't allowed to see. An intercepted message only reveals the event and a URL, as no data is sent directly.
Messages are sent through an API client kept for webhooks, with the webhook.baack.co scope, which can't use the general API. Reading the record takes a separate client, so each can have only the access it needs.
- The trigger: what happened, to which kind of record, and when
- The subscription the message is for
- A link to the record that changed
- A signature, on every message, to prove it came from Baack and hasn't been altered
When your system is down
If your system times out or reports a temporary failure, Baack tries again, waiting longer each time: 10 attempts in all, over up to 24 hours. A retry is the same message, with the same identifying key, so your system can skip one it's already handled. Reply as soon as you've recorded a message and do the work afterwards, so that a slow job isn't mistaken for a failure.
A failure that can't be retried expires the subscription immediately, as do retries that all fail, and later changes aren't sent. Subscriptions also last up to 90 days unless they're renewed. So plan for a subscription stopping: renew yours ahead of time, and subscribe to changes to your webhook subscriptions themselves, as disabling one sets its expiry time to that moment.
- A failure that can be retried gets 10 attempts over up to 24 hours, then the subscription stops
- A failure that can't be retried stops the subscription immediately
- Every attempt and its outcome is recorded against the change that triggered it
- Subscriptions last up to 90 days, and can be renewed through the API
How webhooks count towards your usage
Each delivery attempt counts towards your usage, including retries, and each language of a page is its own entity. So a change to 20 language versions in a day, with two subscriptions listening, is 40 deliveries a day: about 1,200 a month, before any retries.
That's why a subscription should be as narrow as it can be: one kind of record, only the events you act on. Each subscription also has its own limit, of up to 6,000 events a minute, so a burst of changes can't overwhelm a small server.
Who built them
Damien Allison, Baack's founder, worked on the API Platform team behind Meta's global webhooks, improving delivery reliability across hundreds of billions of delivery attempts a day.