Rate this page:

Thanks for rating this page!

We are always striving to improve our documentation quality, and your feedback is valuable to us. How could this documentation serve you better?

Phone Numbers Subresource

Public Beta
Twilio's Messaging Services API is currently available as a Public Beta product. Some features are not yet implemented and others may be changed before the product is declared as Generally Available.
Public Beta products are not covered by a Twilio SLA.

The Phone Numbers subresource of a Service instance represents the phone numbers you have associated to the Service.

When sending a message with your Messaging Service, Copilot will select one of these phone numbers for delivery.

Inbound messages received on any phone number associated to a Messaging Service are passed to the inbound request URL of the Service. Twilio will make HTTP requests with the following parameters and values to the application you have hosted in this URL.

PhoneNumber properties

Each phone number has these properties:

sid<AC> Not PII

The 34 character unique sid of the Account.

string[] Not PII

Any array of values that indicate whether the number can receive calls or messages. Possible capabilities are Voice, SMS, and MMS.

string Not PII

The 2 character ISO Country Code of the number.

date_time<iso8601> Not PII

The date that this resource was created.

date_time<iso8601> Not PII

The date that this resource was last updated.

phone_number Not PII

The E.164 format of the phone number.

sid<MG> Not PII

The 34 character unique sid of the Service.

sid<PN> Not PII

The 34 character unique sid of the Phone Number.

url Not PII

The absolute URL for this resource.

Add a Phone Number to a Service


Each Service can have a max of 400 phone numbers.

post sid<PN> Not PII

Phone Number SID for the Phone Number being added to the Service.

Loading Code Sample...

      View a Phone Number in a Service

      Loading Code Sample...

          List all Phone Numbers in a Service

          Loading Code Sample...

              Remove a Phone Number from a Service


              Removing a phone number for the Service does not release the number from your account. You must release a phone number from your Account to disassociate and delete the phone number from the Service.

              Returns a "204 NO CONTENT" if the phone number was successfully removed from the service.

              Loading Code Sample...

                  Need some help?

                  We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd browsing the Twilio tag on Stack Overflow.

                  Loading Code Sample...