Add a webhook or email destination
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Any client-chosen key, a uuid for example. Sending the same request twice with the same key has one effect and returns the same response twice; the same key with a different body returns 409.
1 - 255"3f1b2c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d"
Body
An existing destination, by name or id from list_destinations: the call updates it instead of adding one. With it, pass name, paused, url (webhook) or to (email); provider is not needed.
1 - 200For a new destination: webhook or email. connect_destination connects Slack and other apps.
webhook, email For webhook: the https URL that receives the signed events. On an update it replaces the URL and makes a new secret.
For email: the addresses that receive the emails, 1 to 20. On an update it replaces the list.
1 - 20 elementsOnly with destination. true pauses every sync to it: they send nothing until you resume them. The syncs keep their choices. false resumes them. They do not send the people who entered a view during the pause.
A name to tell destinations apart, such as "Make leads". list_destinations shows it, and save_sync takes it.
1 - 120For webhook and Clay: what it sends about each person, as field keys in order. Examples: first_name, last_name, job_title, company, signal, post_topic, post_url, ziplined_url. An unknown key gets an error with all keys. Left out, a new webhook gets the default set. You cannot change the columns of a Google Sheets tab.
27The confirm_id of a needs_confirmation answer: commits what that answer summarised.
Response
The result, or without confirm_id first a needs_confirmation answer: nothing happened yet.