How do I add webhooks?
Looking to send on-chain activity data to webhooks?
There are two ways to do that with Dispatch — either before you create a Patch, or while you're creating a Patch.
Requirements
- An endpoint (webhook URL) — where Dispatch can send JSON payloads as HTTP POST requests
- A name for your webhook — one you'll remember, that will help you distinguish from other webhooks)
Once you’ve added a new webhook, you use it in as many of your Patches as you like.
Adding a webhook from Account Settings
Go to Connected Apps
Scroll down to “Connect more apps” and click Webhook.
In the "Create webhook" modal, provide a descriptive name and the webhook endpoint URL.
- Add the webhook endpoint URL in the "Webhook URL" field.
- Click "Save" to add the webhook.
Use the webhook in a Patch
To use the webhook you just created in a Patch, simply click the ••• button and select "Create Patch". The webhook will automatically be selected as your "Action".
Adding a webhook while creating a Patch
Start creating a new Patch and choose "Webhook" as the Action service.
In Step 4 - Action details, select "Click here to add a new webhook" from the Webhook dropdown menu:
Provide a descriptive name and the webhook endpoint URL in the "Create webhook" modal.
- Paste the webhook endpoint URL in the "Webhook URL" field.
- Click "Save" to add the webhook.
Deleting webhooks
To see all the webhooks you've added, or delete previously added webhooks, visit Connected Apps in your Account Settings. From there, you can see all the webhooks you've added, and how many Patches each webhook is being used in.
Find the webhook you wish to delete, and click the ••• button.
Select "Delete".
Example: Using webhooks to log on-chain activity to Google Sheets
For a hands-on walk-through of using Dispatch to send on-chain data to other services, check this guide: Automatically log on-chain activity to Google Sheets without code
Tip: For quick testing, use webhook.site to get a unique URL and see incoming webhook notifications.