Menu

Expand
Rate this page:

Inbound Processing Region API - PhoneNumber

In the context of the Inbound Processing Region API, a PhoneNumber resource represents the routing configuration for a particular IncomingPhoneNumber.

By adjusting the value of the voice_region property, you can control which Twilio Region will process and store data related to inbound calls for the phone number.

Changes to this resource may take up to 5 minutes to take effect.

PhoneNumber properties

Resource Properties in REST API format
phone_number
string Not PII

The phone number in E.164 format

url
url Not PII

The absolute URL of the resource.

sid
sid<QQ> Not PII

A 34 character string that uniquely identifies the Inbound Processing Region assignments for this phone number.

account_sid
sid<AC> Not PII

The unique SID identifier of the Account.

friendly_name
string Not PII

A human readable description of the Inbound Processing Region assignments for this phone number, up to 64 characters.

voice_region
string Not PII

The Inbound Processing Region used for this phone number for voice.

date_created
date_time<iso8601> Not PII

The date that this phone number was assigned an Inbound Processing Region, given in ISO 8601 format.

date_updated
date_time<iso8601> Not PII

The date that the Inbound Processing Region was updated for this phone number, given in ISO 8601 format.

Fetch a PhoneNumber's current Inbound Processing Region configuration

get
https://routes.twilio.com/v2/PhoneNumbers/{PhoneNumber}
Parameters
Parameters in REST API format
phone_number
Path
get string Not PII

The phone number in E.164 format

Example 1
Loading Code Sample...
        
        

        Fetch a PhoneNumber's current Inbound Processing Region configuration

        Update a PhoneNumber's Inbound Processing Region configuration

        post
        https://routes.twilio.com/v2/PhoneNumbers/{PhoneNumber}
        Parameters
        Parameters in REST API format
        phone_number
        Path
        post string Not PII

        The phone number in E.164 format

        voice_region
        Optional
        post string Not PII

        The Inbound Processing Region used for this phone number for voice

        friendly_name
        Optional
        post string Not PII

        A human readable description of this resource, up to 64 characters.

        Example 1
        Loading Code Sample...
              
              

              Update a PhoneNumber's Inbound Processing Region configuration

              Rate this page:

              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 by visiting Twilio's Stack Overflow Collective or browsing the Twilio tag on Stack Overflow.

              Loading Code Sample...
                    
                    
                    

                    Thank you for your feedback!

                    Please select the reason(s) for your feedback. The additional information you provide helps us improve our documentation:

                    Sending your feedback...
                    🎉 Thank you for your feedback!
                    Something went wrong. Please try again.

                    Thanks for your feedback!

                    thanks-feedback-gif