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

Syllable-API-Key
string
header
required

Body

application/json

Response

200
application/json

Successful Response

The response is of type object.