Webhooks let you subscribe to certain events so that you get informed about
changes in APITree. Rather than requiring you to pull information via our
REST API, webhooks push notifications to
your destination when important events occur. They can be used to integrate
APITree into systems like Slack.
Events
For every webhook you have to choose which events you would like to receive notifications
(payloads) for. It is recommended that you only subscribe to the events which are useful
for your case, to limit the number of HTTP requests to your server. You can change your
subscriptions anytime. The following events are available:
Event
Description
api.created
Triggered when a user creates a new API
api.deleted
Triggered when a user deletes an API
release.released
Triggered when a user releases a new API version
release.deprecated
Triggered when a user marks a release as "deprecated"
release.endOfLife
Triggered when a user marks a release as "end-of-life"
release.deleted
Triggered when a user deletes a release
Note: There is a maximum of 30 webhooks for each user.
Creating a Webhook
Login to your account. Make sure your email address is verified. In the left sidebar click Webhooks.
Click Create Webhook. Enter the target URL, select the events, and activate the webhook:
For easier debugging the HTTP response of the last delivery is shown for each webhook:
Validating notifications
Each notification contains a X-ApiTree-Signature header containing a signature.
The signature is to ensure that the message originated from APITree and was not modified in transit.
APITree uses an HMAC hexdigest to compute a hash used as the signature. The hash is computed from
the secret token of the webhook, the target URL, and the payload. A webhook from APITree looks like this: