List campaigns
curl --request GET \
--url https://api.threetone.in/v1/convai/outbound-campaigns/campaignsimport requests
url = "https://api.threetone.in/v1/convai/outbound-campaigns/campaigns"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.threetone.in/v1/convai/outbound-campaigns/campaigns', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"campaigns": [
{
"campaign_id": "<string>",
"call_name": "<string>",
"agent_id": "<string>",
"channel_config": {
"agent_phone_number_id": "<string>",
"channel": "phone",
"mode_config": {
"ringing_timeout_secs": 60,
"twilio_call_recording_enabled": false,
"twilio_machine_detection": {
"mode": "enable",
"actions": [
{
"action": "hang_up",
"answered_by": [
"human"
]
}
]
},
"mode": "voice"
}
},
"status": "active",
"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": [
123
],
"intervals": [
{
"start": "<string>",
"end": "<string>"
}
]
}
],
"data_collection": {
"callback_time": "<string>",
"redirect_phone_number": "<string>",
"stop": "<string>",
"mappings": {}
},
"followup_context": {
"call_type": true,
"previous_conversation_id": true,
"previous_summary": true,
"previous_transcript": true
},
"date_overrides": [
{
"start_date": "2023-12-25",
"end_date": "2023-12-25",
"intervals": [
{
"start": "<string>",
"end": "<string>"
}
],
"name": "<string>"
}
]
},
"variant": "simple",
"source": "ui",
"created_at_unix": 123,
"scheduled_time_unix": 123,
"updated_at_unix": 123,
"branch_id": "<string>",
"environment": "<string>",
"target_concurrency_limit": 123,
"channel": "phone",
"mode": "voice",
"counts": {
"leads": 123,
"terminal_leads": 123,
"open_attention": 123,
"delivery": {
"sent": 0,
"delivered": 0,
"read": 0,
"replied": 0,
"failed": 0
}
},
"agent_name": ""
}
],
"next_cursor": "<string>",
"has_more": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Campaigns
List campaigns
List the workspace’s outbound campaigns, newest first.
GET
/
v1
/
convai
/
outbound-campaigns
/
campaigns
List campaigns
curl --request GET \
--url https://api.threetone.in/v1/convai/outbound-campaigns/campaignsimport requests
url = "https://api.threetone.in/v1/convai/outbound-campaigns/campaigns"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.threetone.in/v1/convai/outbound-campaigns/campaigns', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"campaigns": [
{
"campaign_id": "<string>",
"call_name": "<string>",
"agent_id": "<string>",
"channel_config": {
"agent_phone_number_id": "<string>",
"channel": "phone",
"mode_config": {
"ringing_timeout_secs": 60,
"twilio_call_recording_enabled": false,
"twilio_machine_detection": {
"mode": "enable",
"actions": [
{
"action": "hang_up",
"answered_by": [
"human"
]
}
]
},
"mode": "voice"
}
},
"status": "active",
"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": [
123
],
"intervals": [
{
"start": "<string>",
"end": "<string>"
}
]
}
],
"data_collection": {
"callback_time": "<string>",
"redirect_phone_number": "<string>",
"stop": "<string>",
"mappings": {}
},
"followup_context": {
"call_type": true,
"previous_conversation_id": true,
"previous_summary": true,
"previous_transcript": true
},
"date_overrides": [
{
"start_date": "2023-12-25",
"end_date": "2023-12-25",
"intervals": [
{
"start": "<string>",
"end": "<string>"
}
],
"name": "<string>"
}
]
},
"variant": "simple",
"source": "ui",
"created_at_unix": 123,
"scheduled_time_unix": 123,
"updated_at_unix": 123,
"branch_id": "<string>",
"environment": "<string>",
"target_concurrency_limit": 123,
"channel": "phone",
"mode": "voice",
"counts": {
"leads": 123,
"terminal_leads": 123,
"open_attention": 123,
"delivery": {
"sent": 0,
"delivered": 0,
"read": 0,
"replied": 0,
"failed": 0
}
},
"agent_name": ""
}
],
"next_cursor": "<string>",
"has_more": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}