POST
/
api
/
v1
/
channels
/
twilio
/
Python (SDK)
import os
from syllable_sdk import SyllableSDK


with SyllableSDK(
    api_key_header=os.getenv("SYLLABLESDK_API_KEY_HEADER", ""),
) as ss_client:

    res = ss_client.channels.twilio.create(request={
        "name": "syllable-webchat",
        "config": {
            "account_sid": "AC123...",
            "auth_token": "sometoken",
        },
    })

    # Handle response
    print(res)
{
  "name": "syllable-webchat",
  "channel_service": "webchat",
  "supported_modes": "chat,voice",
  "is_system_channel": false,
  "id": 123,
  "config": {
    "telephony": {
      "interruptibility": "dtmf_only",
      "overall_input_timeout": 20,
      "passive_input_start": 0.5,
      "passive_speech_input_enabled": true,
      "pre_input_timeout": 1.2
    }
  }
}

Authorizations

Syllable-API-Key
string
header
required

Body

application/json

Request model for creating a Twilio channel.

name
string
required

The channel name

Examples:

"syllable-webchat"

config
object
required

The configuration of the channel

Response

Successful Response

name
string
required

The channel name

Examples:

"syllable-webchat"

channel_service
enum<string>
required

The service that facilitates communication on the channel

Available options:
sip,
twilio,
email,
webchat
id
integer
required

The channel ID

supported_modes
string | null

The comma-delimited list of supported modes for the channel, which defines the possible communication methods for channel targets linked to it.

Examples:

"chat,voice"

is_system_channel
boolean
default:true

Whether the channel is a built-in system channel (i.e., is not customizable)

Examples:

false

config
object | null

Configuration for the channel

Examples:
{
"telephony": {
"interruptibility": "dtmf_only",
"overall_input_timeout": 20,
"passive_input_start": 0.5,
"passive_speech_input_enabled": true,
"pre_input_timeout": 1.2
}
}