Get campaign configuration
curl --request GET \
--url https://api.threetone.in/v1/convai/outbound-campaigns/configimport requests
url = "https://api.threetone.in/v1/convai/outbound-campaigns/config"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.threetone.in/v1/convai/outbound-campaigns/config', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"version": 123,
"config": {
"policy": {
"timezone": "UTC",
"retry": {
"retry_delay_seconds": 600,
"max_short_retries": 1,
"max_total_calls": 6,
"max_callbacks": 2,
"max_redirects": 2,
"interval_placement": "start",
"rotate_step_seconds": 900,
"max_consecutive_failures_per_number": 15
},
"calling_periods": [
{
"weekdays": [
3
],
"intervals": [
{
"start": "<string>",
"end": "<string>"
}
]
}
],
"date_overrides": [
{
"start_date": "2023-12-25",
"end_date": "2023-12-25",
"intervals": [
{
"start": "<string>",
"end": "<string>"
}
],
"name": "<string>"
}
],
"data_collection": {
"callback_time": "__system_data_collection_callback_time",
"redirect_phone_number": "__system_data_collection_redirect_phone_number",
"stop": "__system_data_collection_do_not_call",
"mappings": {}
},
"followup_context": {
"call_type": true,
"previous_conversation_id": true,
"previous_summary": true,
"previous_transcript": true
}
},
"agent_policies": {},
"whatsapp_voice_policy": {
"timezone": "<string>",
"retry": {
"retry_delay_seconds": 600,
"max_short_retries": 1,
"max_total_calls": 6,
"max_callbacks": 2,
"max_redirects": 2,
"interval_placement": "start",
"rotate_step_seconds": 900,
"max_consecutive_failures_per_number": 15
},
"calling_periods": [
{
"weekdays": [
3
],
"intervals": [
{
"start": "<string>",
"end": "<string>"
}
]
}
],
"date_overrides": [
{
"start_date": "2023-12-25",
"end_date": "2023-12-25",
"intervals": [
{
"start": "<string>",
"end": "<string>"
}
],
"name": "<string>"
}
],
"data_collection": {
"callback_time": "__system_data_collection_callback_time",
"redirect_phone_number": "__system_data_collection_redirect_phone_number",
"stop": "__system_data_collection_do_not_call",
"mappings": {}
},
"followup_context": {
"call_type": true,
"previous_conversation_id": true,
"previous_summary": true,
"previous_transcript": true
}
}
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Config
Get campaign configuration
Get the workspace’s outbound campaign configuration: the default policy new campaigns take, and per-agent overrides.
GET
/
v1
/
convai
/
outbound-campaigns
/
config
Get campaign configuration
curl --request GET \
--url https://api.threetone.in/v1/convai/outbound-campaigns/configimport requests
url = "https://api.threetone.in/v1/convai/outbound-campaigns/config"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.threetone.in/v1/convai/outbound-campaigns/config', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"version": 123,
"config": {
"policy": {
"timezone": "UTC",
"retry": {
"retry_delay_seconds": 600,
"max_short_retries": 1,
"max_total_calls": 6,
"max_callbacks": 2,
"max_redirects": 2,
"interval_placement": "start",
"rotate_step_seconds": 900,
"max_consecutive_failures_per_number": 15
},
"calling_periods": [
{
"weekdays": [
3
],
"intervals": [
{
"start": "<string>",
"end": "<string>"
}
]
}
],
"date_overrides": [
{
"start_date": "2023-12-25",
"end_date": "2023-12-25",
"intervals": [
{
"start": "<string>",
"end": "<string>"
}
],
"name": "<string>"
}
],
"data_collection": {
"callback_time": "__system_data_collection_callback_time",
"redirect_phone_number": "__system_data_collection_redirect_phone_number",
"stop": "__system_data_collection_do_not_call",
"mappings": {}
},
"followup_context": {
"call_type": true,
"previous_conversation_id": true,
"previous_summary": true,
"previous_transcript": true
}
},
"agent_policies": {},
"whatsapp_voice_policy": {
"timezone": "<string>",
"retry": {
"retry_delay_seconds": 600,
"max_short_retries": 1,
"max_total_calls": 6,
"max_callbacks": 2,
"max_redirects": 2,
"interval_placement": "start",
"rotate_step_seconds": 900,
"max_consecutive_failures_per_number": 15
},
"calling_periods": [
{
"weekdays": [
3
],
"intervals": [
{
"start": "<string>",
"end": "<string>"
}
]
}
],
"date_overrides": [
{
"start_date": "2023-12-25",
"end_date": "2023-12-25",
"intervals": [
{
"start": "<string>",
"end": "<string>"
}
],
"name": "<string>"
}
],
"data_collection": {
"callback_time": "__system_data_collection_callback_time",
"redirect_phone_number": "__system_data_collection_redirect_phone_number",
"stop": "__system_data_collection_do_not_call",
"mappings": {}
},
"followup_context": {
"call_type": true,
"previous_conversation_id": true,
"previous_summary": true,
"previous_transcript": true
}
}
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}