ProxyV1PhoneNumber

Add a Phone Number to a Service's Proxy Number Pool.

Changed on

Add a Phone Number to a Service's Proxy Number Pool.

post/v1/Services/{ServiceSid}/PhoneNumbers

Request

  • Base URL
    https://proxy.twilio.com
  • URL
    https://proxy.twilio.com/v1/Services/{ServiceSid}/PhoneNumbers
  • Auth
    HTTP basic

Path parameters

ServiceSidstring required

The SID parent Service resource of the new PhoneNumber resource.

Request body application/x-www-form-urlencoded

Sidstring

The SID of a Twilio IncomingPhoneNumber resource that represents the Twilio Number you would like to assign to your Proxy Service.

PhoneNumberstring phone-number

The phone number in E.164 format. E.164 phone numbers consist of a + followed by the country code and subscriber number without punctuation characters. For example, +14155551234.

IsReservedboolean

Whether the new phone number should be reserved and not be assigned to a participant using proxy pool logic. See Reserved Phone Numbers for more information.

Response

Created

sidstring nullable

The unique string that we created to identify the PhoneNumber resource.

account_sidstring nullable

The SID of the Account that created the PhoneNumber resource.

service_sidstring nullable

The SID of the PhoneNumber resource's parent Service resource.

date_createdstring date-time nullable

The ISO 8601 date and time in GMT when the resource was created.

date_updatedstring date-time nullable

The ISO 8601 date and time in GMT when the resource was last updated.

phone_numberstring phone-number nullable

The phone number in E.164 format, which consists of a + followed by the country code and subscriber number.

friendly_namestring nullable

The string that you assigned to describe the resource.

iso_countrystring nullable

The ISO Country Code for the phone number.

urlstring uri nullable

The absolute URL of the PhoneNumber resource.

is_reservedboolean nullable

Whether the phone number should be reserved and not be assigned to a participant using proxy pool logic. See Reserved Phone Numbers for more information.

in_useinteger

The number of open session assigned to the number. See the How many Phone Numbers do I need? guide for more information.

Changes