Passa al contenuto principale

Create Destination

POST 

/v1/destinations

Add a destination. kind is email_list (config: {addresses: [..]}, 1 to 20 addresses), slack_webhook (config: \{url\}, a https://hooks.slack.com/... URL) or webhook (config: {url}, an https:// endpoint). It starts unverified: send it a test (POST /v1/destinations/{id}/test) before a watcher may name it.

A webhook answers its signing secret here, ONCE. Each POST to it carries X-Webhook-Timestamp and X-Webhook-Signature: v1=<hex>, the HMAC-SHA256 of "<timestamp>.<body>" under that secret. A webhook is only called over https, at a public address, with a 10 second timeout, and a redirect is never followed.

An email_list that holds the address of a member of this account answers members: each such address with the member's userId. A watcher reaches a member by that id, with no destination and no test send.

An account admin, through the app or an admin API key.

Request​

Responses​

Successful Response