import os
from syllable_sdk import SyllableSDK
with SyllableSDK(
api_key_header=os.getenv("SYLLABLESDK_API_KEY_HEADER", ""),
) as ss_client:
res = ss_client.outbound.campaigns.get_by_id(campaign_id=11227)
# Handle response
print(res)
{
"campaign_name": "Outbound Campaign 1",
"description": "This is a test campaign",
"label": "test",
"labels": [
"test",
"demo"
],
"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-08-20T00:00:00Z",
"updated_at": "2025-08-20T00:00:00Z",
"last_updated_by": "user@email.com"
}
import os
from syllable_sdk import SyllableSDK
with SyllableSDK(
api_key_header=os.getenv("SYLLABLESDK_API_KEY_HEADER", ""),
) as ss_client:
res = ss_client.outbound.campaigns.get_by_id(campaign_id=11227)
# Handle response
print(res)
{
"campaign_name": "Outbound Campaign 1",
"description": "This is a test campaign",
"label": "test",
"labels": [
"test",
"demo"
],
"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-08-20T00:00:00Z",
"updated_at": "2025-08-20T00:00:00Z",
"last_updated_by": "user@email.com"
}
Successful Response
The response is of type object
.