メニュー

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?

Shortcode

With Twilio Proxy, you associate phone numbers and short codes (this resource) directly with a Proxy Service. All added numbers go into the Proxy Number Pool associated with a given Proxy Service. For more information on managing the phone numbers in your number pool, refer to our Phone Number Management guide.

Note on Short Codes associated with Services

A Twilio short code associated with a Proxy Service cannot be associated with other Proxy Services in the same account.

ShortCode properties

Names in PHP format
sid
sid<SC> Not PII

A 34 character string that uniquely identifies this Short Code.

accountSid
sid<AC> Not PII

The unique SID identifier of the Account.

serviceSid
sid<KS> Not PII

The unique SID identifier of the Service.

dateCreated
date_time<iso8601> Not PII

The date that this Short Code was added to the service, given in ISO 8601 format.

dateUpdated
date_time<iso8601> Not PII

The date that this Short Code was updated, given in ISO 8601 format.

shortCode
文字列 Not PII

The Shortcode's number.

isoCountry
文字列 Not PII

The ISO Country Code for this shortcode.

capabilities
phone_number_capabilities Not PII

A list of capabilities of this short code.

url
url Not PII

The URL of this resource.

isReserved
boolean Not PII

Whether or not the short code should be excluded from being assigned to a participant using proxy pool logic

Add a Short Code to a Proxy Service

post
https://proxy.twilio.com/v1/Services/{ServiceSid}/ShortCodes
パラメーター
Names in None format
service_sid
必須
post sid<KS> Not PII

The unique SID identifier of the Service.

sid
必須
post sid<SC> Not PII

A 34 character string that uniquely identifies this Short Code.

        
        
        
        

        Fetch a ShortCode resource

        GET
        https://proxy.twilio.com/v1/Services/{ServiceSid}/ShortCodes/{Sid}
        パラメーター
        Names in None format
        service_sid
        必須
        GET sid<KS> Not PII

        The unique SID identifier of the Service.

        sid
        必須
        GET sid<SC> Not PII

        A 34 character string that uniquely identifies this Short Code.

              
              
              
              

              Get the list of Short Codes associated with a Proxy Service

              GET
              https://proxy.twilio.com/v1/Services/{ServiceSid}/ShortCodes
              パラメーター
              Names in None format
              service_sid
              必須
              GET sid<KS> Not PII

              The unique SID identifier of the Service.

                    
                    
                    
                    

                    Update a ShortCode resource

                    post
                    https://proxy.twilio.com/v1/Services/{ServiceSid}/ShortCodes/{Sid}
                    パラメーター
                    Names in None format
                    service_sid
                    必須
                    post sid<KS> Not PII

                    The unique SID identifier of the Service.

                    sid
                    必須
                    post sid<SC> Not PII

                    A 34 character string that uniquely identifies this Short Code.

                    is_reserved
                    オプション
                    post boolean Not PII

                    Whether or not the short code should be excluded from being assigned to a participant using proxy pool logic

                          
                          
                          
                          

                          Remove a Short Code from a Proxy Service

                          削除する
                          https://proxy.twilio.com/v1/Services/{ServiceSid}/ShortCodes/{Sid}
                          パラメーター
                          Names in None format
                          service_sid
                          必須
                          削除する sid<KS> Not PII

                          The unique SID identifier of the Service.

                          sid
                          必須
                          削除する sid<SC> Not PII

                          A 34 character string that uniquely identifies this Short Code.

                                
                                
                                
                                
                                Rate this page:

                                ヘルプが必要ですか?

                                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.