Create a webhook
curl --request POST \
--url https://api.salessequencer.com/api/v1/settings/webhooks/create \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"url": "<string>"
}
'import requests
url = "https://api.salessequencer.com/api/v1/settings/webhooks/create"
payload = { "url": "<string>" }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({url: '<string>'})
};
fetch('https://api.salessequencer.com/api/v1/settings/webhooks/create', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Webhooks
Create a webhook
Subscribes a URL to the campaign_reply event (the only event; fixed in code). New campaign replies are POSTed to it from now on. Refuses (flash) unless url starts with http:// or https://.
Minimum role: admin (x-min-role). Destructive: false (x-destructive).
POST
/
settings
/
webhooks
/
create
Create a webhook
curl --request POST \
--url https://api.salessequencer.com/api/v1/settings/webhooks/create \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"url": "<string>"
}
'import requests
url = "https://api.salessequencer.com/api/v1/settings/webhooks/create"
payload = { "url": "<string>" }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({url: '<string>'})
};
fetch('https://api.salessequencer.com/api/v1/settings/webhooks/create', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));