POST /webhooks/<source>, whether or not any subscription matched.
Use this to discover what a provider sends before writing filters.
| # | Source | Matched agents | Received | |
|---|---|---|---|---|
| {{ d.id }} | {{ d.source }} | {% if d.matched_agents %} {% for a in d.matched_agents %} {{ a }}{% if not loop.last %}, {% endif %} {% endfor %} {% else %} unrouted {% endif %} | {{ d.received_at | time_span }} | |
|
Payload
{{ d.payload | pretty_json }}Headers
{{ d.headers | pretty_json }}Subscribe from the SDK
from waffle_sdk import run
run(handle,
agent="my-agent",
project="default",
subscriptions=[
{"source": "{{ d.source }}", "filter": {}},
])
Copy-paste, replace
"filter": {} with a JSON subset that must be present in the payload
(nested keys are matched by path). Empty {} matches everything from this source.
|
||||
Point a provider at POST /webhooks/<source> and anything it sends will show up here, even without matching subscriptions.
curl -sX POST http://127.0.0.1:8765/webhooks/example \
-H 'content-type: application/json' \
-d '{"hello":"world"}' | jq