Bitbucket webhooks are used by teams every day to test, analyze, deploy, and distribute great software to millions of people.
As Bitbucket webhooks are one of our most popular integration points, we’ve had the opportunity to gather lots of feedback regarding our webhook payloads, usage, and integrations.
We’re proud to announce the new Bitbucket webhooks.
The new webhooks can be accessed in your repository administration settings as shown in the image above. The webhooks provide a host of improvements over the previous, and soon-to-be deprecated “POST and Pull Request POST” hooks, which have now been renamed to “Services”.
Let’s look at some of the improvements and attributes of the new webhooks.
Fuller, more descriptive payload
Bitbucket webhooks now send more comprehensive information in the payload. For example, a repo:push event now includes detailed payload information about each and every reference that was updated:
Please visit our payload documentation for more examples of changes and improvements.
We’ve added fine-grained control over the events you want to receive hooks for, such as repository, issue, and pull request events:
You can now troubleshoot malfunctioning webhooks more easily by reviewing the recent requests, including status codes and response times:
The new Bitbucket webhooks have been written from the ground up as a Connect add-on using our Atlassian Connect for Bitbucket platform, leveraging the same APIs for building powerful add-ons for extending Bitbucket.
This is just the beginning. We’ve got more features on the way, such as viewing request details (headers, event payloads, etc.), retrying requests, advanced queuing, and much more.
If you’re currently integrating with the old webhooks (renamed to “Services”), these will be deprecated soon. Please visit our payload documentation for the new payload descriptions.
Take the new Bitbucket webhooks for a spin – you can configure them in your repository settings. Are you inspired to build new, exciting integrations? Clone our webhook-listener demo project to quickly get started with Bitbucket webhooks.