If you’ve tried processing Buildkite webhooks with AWS Lambda and Google Cloud Functions you'll know dealing with HTTP headers can sometimes be more painful than dealing with plain old JSON body properties.
To simplify the job of Buildkite webhook integration we’ve added the event name to the JSON payload body itself—you no longer need extra code to handle HTTP headers 🎉
We’ve updated all the webhooks examples with the new event
property. For example, the build.finished
webhook now looks like this:
1 2 3 4 5 6 7 8 9
{ "event": "build.finished", "build": { "..": "..." }, "sender": { "...": "..." } }
We’ve also updated the API overview to clarify when to pass query string parameters and when to send JSON request bodies. The docs for each endpoint explain exactly what is expected
We hope these changes bring a little less 😣 a little more 😺 when you’re working on Buildkite API integrations 💚
Create an account to get started with a 30-day free trial. No credit card required.