channels.twilio.numbers
Add Twilio Number
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
channels.twilio.numbers
Add Twilio Number
Purchase a Twilio number and associate it with a channel.
POST
/
api
/
v1
/
channels
/
twilio
/
{channel_id}
/
numbers
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.numbers.add(channel_id=551477, twilio_number_add_request={
"friendly_name": "Support Line",
"area_code": "804",
})
# Handle response
print(res)
{
"phone_number": "+18042221111"
}
Authorizations
Path Parameters
Body
application/json
Request model for purchasing a Twilio number and associating it with a channel.
Response
200
application/json
Successful Response
Response model for purchasing a Twilio number and associating it with a channel.
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.numbers.add(channel_id=551477, twilio_number_add_request={
"friendly_name": "Support Line",
"area_code": "804",
})
# Handle response
print(res)
{
"phone_number": "+18042221111"
}