Modular Webhooks Integration
All the information you need
It’s a common practice to have granular API endpoints return only the data you requested. It’s different for Webhooks. When integrating with a service via a Webhook, you want as much information as possible. Ideally you should not need to query the API for additional information when receiving a Webhook. This was one of our goals with the Modular Webhooks. Whenever you’re receiving information about a recent commit or a failed deployment, we'll make sure that you'll have all related data in place. Check out the payload examples to see for yourself.
Customizable triggers
It is now possible to select when to trigger a Webhook. Currently we support these events:
- On each push (Git).
- On each commit (SVN).
- Every time a deployment is finished.
- Any comment is posted on a changeset, a file or a code review.
- When a branch is created.
- When a branch is deleted.
- When a tag is created.
- When a tag is deleted.
- When a Code Review is requested for a branch.
- When a Code Review is approved.
- When a Code Review is canceled.
- When a canceled or approved Code Review is reopened.
- When a new Issue is added to a Code Review.
- When a Code Review Issue is marked as resolved.
We’re going to extend this list as we go, eventually allowing you to hook into any event happening inside your Beanstalk repository.
Multiple Webhooks support
Often you want multiple services to be notified via Webhook. Modular Webhooks will now support that. You can add as many Webhooks as you need, name them, and never forget what a certain URL is used for again.
Requests History
Developing and debugging Webhooks can sometimes get difficult, but not with Modular Webhooks. We provide you with a history of all HTTP requests sent to your Webhook. You will be able to inspect any request or response contents and retry when the problem has been fixed.
What about the old Webhooks?
Using our old Webhooks? No need to change anything. Modular Webhooks are built as a separate integration, the good old Webhooks are now called “Classic Webhooks” and have been left fully intact. Feel free to keep using them (or even activate for new repositories) for as long as you wish.
Setting up Modular Webhooks in Beanstalk
To get started, go to the “Settings” page of your repository, select “Integration”, click on “Modular Webhooks” and add your first Webhook. Or use the Integrations API if you want to add Webhooks for all repositories on your account. Whichever way you choose, we hope you’ll like this update. Let us know in comments if you have any questions or ideas.