Webhooks allow you to be notified of Snyk system events, enabling you to build notifications and react to changes in your projects. The current implementation supports events for recurring scans of open source and container image related projects.
When events are triggered, Snyk sends HTTP POST requests to URLs you have configured for those events, with all the information you need.
Receive instant notifications/alerts in your organization's business communication/collaboration software. Please refer to our free tutorial on setting this up with Microsoft Teams for step-by-step instructions.
Respond to critical issues before they impact your business. Embrace modern incident management and Snyk to stay ahead of application security. Read more about this use case in the blog "Shifting left security incident management with the Snyk & Opsgenie integration" as well as our free Opsgenie guide that guides you on configuring this integration.
Get real-time security alerts aggregated across various sources into a single platform. read more about Snyk's partnership with Rapid7 and how together we help organizations mitigate security risks.
Event messages are delivered with a
application/json, with the event payload as JSON in the request body. We also send the following headers:
X-Snyk-Eventthe name of the event and the version of the payload, such as
X-Snyk-Transport-IDa GUID to identify this delivery
X-Snyk-Timestampan ISO 8601 timestamp for when the event occurred, e.g.
X-Hub-Signaturethe HMAC hex digest of the request body which is used to secure your webhooks and ensure the request did indeed come from Snyk
User-Agentidentifies the origin of the request, e.g.
Each webhook receives all events.
Webhooks can only be configured for URLs using the HTTPS protocol. HTTP is not allowed.
When creating a webhook, you must provide a secret - this is a string that only you know that we will use to sign our transports to you so that you can ensure they come from Snyk. Your secret should be:
- A random string with high entropy
- Not be used for anything else
- Only known to Snyk and your webhook transport consuming code
All transports sent to your webhooks will have a
X-Hub-Signatureheader, which contains the hash signature for the transport. The signature is a HMAC hexdigest of the request body, generated using sha256 and your secret as the HMAC key.