Create a campaign
curl --request POST \
--url https://api.salessequencer.com/api/v1/campaigns/new \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"name": "<string>"
}
'import requests
url = "https://api.salessequencer.com/api/v1/campaigns/new"
payload = { "name": "<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({name: '<string>'})
};
fetch('https://api.salessequencer.com/api/v1/campaigns/new', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Campaigns
Create a campaign
Creates a draft campaign in the current workspace. Sends nothing. Refuses an empty name (flash ‘Campaign name is required’, no campaign created). A non-numeric or negative min_gap_minutes silently falls back to 15.
Minimum role: edit (x-min-role). Destructive: false (x-destructive).
POST
/
campaigns
/
new
Create a campaign
curl --request POST \
--url https://api.salessequencer.com/api/v1/campaigns/new \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"name": "<string>"
}
'import requests
url = "https://api.salessequencer.com/api/v1/campaigns/new"
payload = { "name": "<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({name: '<string>'})
};
fetch('https://api.salessequencer.com/api/v1/campaigns/new', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Authorizations
Body
application/json
Response
200
Redirect to the new campaign (status draft). The new campaign id is in the redirect URL.