Learn how to set up and configure webhooks to listen for events from DeepSource.
POST
request. The payload will be sent to this endpoint whenever an event is triggered.2XX
response from the endpoint, the webhook will be activated.
x-deepsource-signature
header. This signature is generated by hashing the payload with the secret provided by you. It can be used to verify the authenticity of the payload. HMAC
is widely supported across programming languages and frameworks, here are a few implementations to get you started.
id
: A unique id to identify this webhook event delivery.type
: The triggered webhook event’s shortcode.createdAt
: A UNIX timestamp of when this event was created.data.object
: The object associated with the webhook event. For e.g., in the case of analysis_run.updated
webhook event, data.object
is an AnalysisRun
object.data.object
there can be additional fields depending on the webhook event.