outbound.campaigns
Create Outbound Communication Campaign
agents
channels.twilio.numbers
agents.test
conversations
data_sources
events
incidents
insights
insights.folders
insights.workflows
insights.tools
custom_messages
prompts
session_labels
sessions.transcript
sessions.full-summary
sessions.latency
session_debug
channels.targets
directory
dashboards
outbound.batches
- GETList Outbound Communication Batches
- POSTCreate Outbound Communication Batch
- GETGet Outbound Communication Batch
- PUTUpdate Outbound Communication Batch
- DELDelete Outbound Communication Batch
- POSTUpload Outbound Communication Batch
- GETFetch Outbound Communication Batch Results
- POSTCreate Outbound Communication Request
- POSTDelete Requests By List Of Reference Ids
outbound.campaigns
language_groups
outbound.campaigns
Create Outbound Communication Campaign
POST
/
api
/
v1
/
outbound
/
campaigns
import os
import syllable_sdk
from syllable_sdk import SyllableSDK
with SyllableSDK(
api_key_header=os.getenv("SYLLABLESDK_API_KEY_HEADER", ""),
) as ss_client:
res = ss_client.outbound.campaigns.create(request={
"campaign_name": "Outbound Campaign 1",
"description": "This is a test campaign",
"label": "test",
"campaign_variables": {
"key": "value",
"key2": "value2",
},
"daily_start_time": "09:00:00",
"daily_end_time": "17:00:00",
"source": "account@email.com",
"caller_id": "19995551234",
"retry_interval": "12h",
"active_days": [
syllable_sdk.DaysOfWeek.MON,
],
})
# Handle response
print(res)
{
"campaign_name": "Outbound Campaign 1",
"description": "This is a test campaign",
"label": "test",
"campaign_variables": {
"key": "value",
"key2": "value2"
},
"daily_start_time": "09:00:00",
"daily_end_time": "17:00:00",
"source": "+19032900844",
"caller_id": 19995551234,
"hourly_rate": 25,
"retry_count": 1,
"retry_interval": "30m",
"active_days": "[\"mon\", \"tue\", \"wed\", \"thu\", \"fri\"]",
"id": 1,
"agent_id": "agent_id",
"created_at": "2025-05-15T00:00:00Z",
"updated_at": "2025-05-15T00:00:00Z",
"last_updated_by": "user@email.com"
}
Authorizations
Body
application/json
Response
200
application/json
Successful Response
The response is of type object
.
The response is of type object
.
The response is of type null
.
import os
import syllable_sdk
from syllable_sdk import SyllableSDK
with SyllableSDK(
api_key_header=os.getenv("SYLLABLESDK_API_KEY_HEADER", ""),
) as ss_client:
res = ss_client.outbound.campaigns.create(request={
"campaign_name": "Outbound Campaign 1",
"description": "This is a test campaign",
"label": "test",
"campaign_variables": {
"key": "value",
"key2": "value2",
},
"daily_start_time": "09:00:00",
"daily_end_time": "17:00:00",
"source": "account@email.com",
"caller_id": "19995551234",
"retry_interval": "12h",
"active_days": [
syllable_sdk.DaysOfWeek.MON,
],
})
# Handle response
print(res)
{
"campaign_name": "Outbound Campaign 1",
"description": "This is a test campaign",
"label": "test",
"campaign_variables": {
"key": "value",
"key2": "value2"
},
"daily_start_time": "09:00:00",
"daily_end_time": "17:00:00",
"source": "+19032900844",
"caller_id": 19995551234,
"hourly_rate": 25,
"retry_count": 1,
"retry_interval": "30m",
"active_days": "[\"mon\", \"tue\", \"wed\", \"thu\", \"fri\"]",
"id": 1,
"agent_id": "agent_id",
"created_at": "2025-05-15T00:00:00Z",
"updated_at": "2025-05-15T00:00:00Z",
"last_updated_by": "user@email.com"
}