Get campaign defaults
curl --request GET \
--url https://agents.labs.bandwidth.com/api/v1/organizations/campaign-defaults \
--header 'Authorization: Bearer <token>'import requests
url = "https://agents.labs.bandwidth.com/api/v1/organizations/campaign-defaults"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://agents.labs.bandwidth.com/api/v1/organizations/campaign-defaults', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"concurrent_call_limit": 123,
"default_retry_config": {
"enabled": true,
"max_retries": 123,
"retry_delay_seconds": 123,
"retry_on_busy": true,
"retry_on_no_answer": true,
"retry_on_voicemail": true
},
"from_numbers_count": 123,
"last_campaign_settings": {
"circuit_breaker": {
"enabled": false,
"failure_threshold": 0.5,
"min_calls_in_window": 5,
"window_seconds": 120
},
"max_concurrency": 123,
"retry_config": {
"enabled": true,
"max_retries": 123,
"retry_delay_seconds": 123,
"retry_on_busy": true,
"retry_on_no_answer": true,
"retry_on_voicemail": true
},
"schedule_config": {
"enabled": true,
"slots": [
{
"day_of_week": 123,
"end_time": "<string>",
"start_time": "<string>"
}
],
"timezone": "<string>"
}
}
}Campaigns
Get campaign defaults
Retrieve campaign calling limits and default settings.
GET
/
api
/
v1
/
organizations
/
campaign-defaults
Get campaign defaults
curl --request GET \
--url https://agents.labs.bandwidth.com/api/v1/organizations/campaign-defaults \
--header 'Authorization: Bearer <token>'import requests
url = "https://agents.labs.bandwidth.com/api/v1/organizations/campaign-defaults"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://agents.labs.bandwidth.com/api/v1/organizations/campaign-defaults', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"concurrent_call_limit": 123,
"default_retry_config": {
"enabled": true,
"max_retries": 123,
"retry_delay_seconds": 123,
"retry_on_busy": true,
"retry_on_no_answer": true,
"retry_on_voicemail": true
},
"from_numbers_count": 123,
"last_campaign_settings": {
"circuit_breaker": {
"enabled": false,
"failure_threshold": 0.5,
"min_calls_in_window": 5,
"window_seconds": 120
},
"max_concurrency": 123,
"retry_config": {
"enabled": true,
"max_retries": 123,
"retry_delay_seconds": 123,
"retry_on_busy": true,
"retry_on_no_answer": true,
"retry_on_voicemail": true
},
"schedule_config": {
"enabled": true,
"slots": [
{
"day_of_week": 123,
"end_time": "<string>",
"start_time": "<string>"
}
],
"timezone": "<string>"
}
}
}Requires a Labs
super_user OAuth bearer token. Use the returned workspace defaults when preparing campaigns; defaults do not grant permission to start calls or guarantee quota. API keys are not accepted.Authorizations
Bandwidth Labs OAuth access token. Uses the user's selected workspace; the workspace header is not required. Do not also send an API key. Bearer-only operations may additionally require the Labs super_user role.