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

  1. An endpoint (webhook URL) — where Dispatch can send JSON payloads as HTTP POST requests
  2. 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

  1. Go to Connected Apps

  2. Scroll down to “Connect more apps” and click Webhook.


  3. In the "Create webhook" modal, provide a descriptive name and the webhook endpoint URL.



  4. Add the webhook endpoint URL in the "Webhook URL" field.
  5. 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

  1. Start creating a new Patch and choose "Webhook" as the Action service.



  2. In Step 4 - Action details, select "Click here to add a new webhook" from the Webhook dropdown menu:



  3. Provide a descriptive name and the webhook endpoint URL in the "Create webhook" modal.



  4. Paste the webhook endpoint URL in the "Webhook URL" field.
  5. 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.


Still need help? Contact Us Contact Us