Create a filter
Filters are applied to a connection, just like any other rule.
To version control your filters, consider creating or updating your connection using the API.
Open the connection rules configuration.
Click
to add a filter rule.Click Open Editor to configure the filter.
- To add a filter for the
Body
,Headers
,Query
, orPath
, select the appropriate tab above the editor. - In the right pane, enter the desired schema using proper filter syntax.
- In the left pane appears the most recent payload for reference and testing purposes. This reference text is editable.
- To add a filter for the
Once written, test your filter against the event in the left pane by clicking
. A check mark next to each section indicates the webhook would be allowed through to its destination based on the contents of that section.Once satisfied, click
.Make sure to click
again on the connection form to apply your changes.
From this point on, any events not matching the filter are disregarded by Hookdeck, and will not appear in your list of events.