List Twilio Phone Numbers
List Twilio phone numbers.
GET
/api/v1/channels/twilio/{channel_id}/numbersAuthentication
Syllable-API-KeyrequiredSend Syllable-API-Key in the header.
Need a credential? Create or manage an API token in the Syllable Console.
Parameters
Path parameters
channel_id
integer
path
required
Responses
200Successful Response
application/json
response
TwilioListNumbersResponse
required
1 field
phone_numbersTwilioPhoneNumber[]requiredList of phone numbers.
Item schema
itemsTwilioPhoneNumberrequired4 fields
sidstringrequiredThe unique identifier for the phone number.
phone_numberstringrequiredThe phone number.
friendly_namestringrequiredA user-friendly name for the number.
trunk_sidstringrequiredAssociated trunk SID, if any.
Response example
{
"phone_numbers": [
{
"sid": "string",
"phone_number": "string",
"friendly_name": "string",
"trunk_sid": "string"
}
]
}422Validation Error
application/json
response
HTTPValidationError
required
1 field
detailValidationError[]optionalItem schema
itemsValidationErrorrequired3 fields
locstring | integer[]requiredItem schema
itemsstring | integerrequired2 options
Option 1stringrequiredOption 2integerrequiredmsgstringrequiredtypestringrequiredResponse example
{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}
