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

Syllable-API-Key
string
header
required

Path Parameters

channel_id
integer
required

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.