Skip to Content
Unmissed Cloud is coming soon.Join the waitlistJoin
Unmissed

Connect a destination

Send a source's webhooks to a destination too, all of them or only some.

POST
/api/v1/sources/{source}/destinations

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.

Authorization

headerAuthorizationBearer <unm_ followed by 40 letters and digits>

A token from the CLI page in Unmissed. Revoke it there to stop it working.

Path Parameters

source*integer

The source's id, from List sources.

Formatint64

Request Body

application/json
  1. body
destination_id*integer
Formatint64
filter_on?|

Where filter_field is. body when left out.

Value in"body""header"null
filter_field?|

The body field or header to match, like type. Required with filter_values.

Lengthlength <= 200
filter_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.

Lengthlength <= 2000

Response Body

The connection.

application/json
  1. response

A source sending to a destination.

source_id*integer
Formatint64
destination_id*integer
Formatint64
filter_on*|
Value in"body""header"null
filter_field*string|null
filter_values*string|null
Example Request
curl -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.*"
}'
Example Response
{
  "source_id": 0,
  "destination_id": 0,
  "filter_on": "body",
  "filter_field": "string",
  "filter_values": "string"
}