Connect a destination
Send a source's webhooks to a destination too, all of them or only some.
Sends this source's new webhooks to a destination too. The destination's URL, rate
limit and down alerts are shared with every other source sending there. The filter is
this source's own: with filter_values, only matching webhooks go there.
Only admins can connect destinations.
A connected app needs the write scope: full access.
AuthorizationBearer <unm_ followed by 40 letters and digits>A token from the CLI page in Unmissed. Revoke it there to stop it working.
source*integerThe source's id, from List sources.
int64application/json- body
destination_id*integerint64filter_on?|Where filter_field is. body when left out.
"body""header"nullfilter_field?|The body field or header to match, like type. Required with filter_values.
length <= 200filter_values?|Values to match, separated by commas, like invoice.*, customer.created. A *
matches anything and a leading ! leaves a value out. Left out, every webhook
goes there.
length <= 2000The connection.
application/json- response
A source sending to a destination.
source_id*integerint64destination_id*integerint64filter_on*|"body""header"nullfilter_field*string|nullfilter_values*string|nullcurl -X POST 'http://localhost:8080/api/v1/sources/0/destinations' \
-H 'Authorization: Bearer ' \
-H 'Content-Type: application/json' \
-d '{
"destination_id": 3,
"filter_on": "body",
"filter_field": "type",
"filter_values": "invoice.*"
}'{
"source_id": 0,
"destination_id": 0,
"filter_on": "body",
"filter_field": "string",
"filter_values": "string"
}