Overview

The webhooks destination type allows you to send the result of a query to a webhook you own. For example, you could run a query that looks for new transactions from or to a list of addresses and send details of those transactions to a webhook for further processing.

Untitled

Options

The “Webhook URL” is the URL you’d like to send data to. You can also include “extra data” that will be sent in an extraData key of the post request to your webhook. Here’s an example POST

There is a special topLevel key you can set in extraData to replace the data sent with the request with just what you have specified in extraData

You can also access your data in extraData to include in your webhook request. For example, this JSON:

{"content": "this is the cost {{data[0].cost}}", "topLevel": true}

Would render to

{"content": "the_value", "topLevel": true}

If the first row of column_name was “the value”.

Discord

You need to set a content key in extraData. You can refence data in the message like this:

{"content": "this is the cost {{data[0].cost}}", "topLevel": true}

https://www.loom.com/share/ab3dd31d09054e23beaafc5fb673a8d5