

(You can set a dummy config var value for the app to initiate a release for it easily.) To test that your webhook subscription works, initiate a release for the app you’ve subscribed to. You can choose one of your existing Heroku apps or create a new one. Your webhook subscription will notify you whenever an app of your choice is deployed. Navigate to the Setup Instructions tab of Webhooks Viewer and follow its instructions.

Next, you subscribe to webhook notifications using the Heroku CLI. Step 2: Create a webhook subscription using the Heroku CLI You’ll be prompted to grant Webhooks Viewer read access to your apps.Īfter you authenticate, the instructions are replaced by the following content: Now, click View to open the Webhooks Viewer app:įollow the instructions shown in the app to authenticate. There’s no need to change any of the app’s settings.Īfter your app is successfully deployed, all of the checkboxes below the Deploy button turn green: When you reach the setup page for the app, scroll down and click Deploy. If you aren’t logged in or don’t have a Heroku account, you’ll progress through the login flow before deploying. Deploy the Webhooks Viewer app with this Heroku Button:

The Webhooks Viewer sample app provides an easy way to view webhook notifications as they’re sent.
Webook tutorial full#
This tutorial walks you through subscribing to an app webhook that notifies you whenever your Heroku app is deployed.Īfter you complete the tutorial, see the full webhooks documentation for more information on subscribing to webhooks and supported event types. Step 2: Create a webhook subscription using the Heroku CLI.
