Start a campaign
curl --request POST \
--url https://api.pineyard.ai/campaigns/{id}/start \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"reservedConcurrency": 500,
"allowBurst": false
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({reservedConcurrency: 500, allowBurst: false})
};
fetch('https://api.pineyard.ai/campaigns/{id}/start', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pineyard.ai/campaigns/{id}/start"
payload = {
"reservedConcurrency": 500,
"allowBurst": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Lifecycle
Start a campaign
Checks the campaign can run (contacts, phone numbers, wallet balance, schedule) and starts dialing. See the start checks.
POST
/
campaigns
/
{id}
/
start
Start a campaign
curl --request POST \
--url https://api.pineyard.ai/campaigns/{id}/start \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"reservedConcurrency": 500,
"allowBurst": false
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({reservedConcurrency: 500, allowBurst: false})
};
fetch('https://api.pineyard.ai/campaigns/{id}/start', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pineyard.ai/campaigns/{id}/start"
payload = {
"reservedConcurrency": 500,
"allowBurst": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
