Prerequisites
- Automations must be enabled for your organization.
- You must be an Admin to create, edit, enable, disable, or delete automations. Developers can view automations and destinations.
- You need an HTTP or HTTPS endpoint that can accept JSON
POSTrequests.
Create an automation
- Open the environment where you want to receive notifications.
- In the environment navigation, select Automations.
- Select New Automation.
- Enter a name and choose whether the automation is enabled when you save it.
- Select an event.
- Select a destination, then select Save Changes.
Configure a destination
Destinations are reusable webhook endpoints. Create one from Manage Destinations while creating an automation, or select Destinations on the Automations page.- Select Add Destination.
- Enter a name and your Webhook URL.
- Optionally enter a Signing secret.
- Select Save Changes, then choose the destination for your automation.
POST request with a Content-Type: application/json header. A response outside the 2xx range is treated as a failed delivery and is retried up to three times.
Webhook is the only destination type currently available. Slack and email destinations are not yet supported.
Verify webhook requests
When you set a signing secret, Hotglue adds anX-Hub-Signature header containing the HMAC-SHA1 signature of the raw request body. Use a timing-safe comparison to verify the request before processing it.
webhook-verification.js