Level up your Twilio API skills in TwilioQuest, an educational game for Mac, Windows, and Linux. Download Now

メニュー

Expand
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?

Services

A Verification Service is the set of common configurations used to create and check verifications. This includes features like:

  • Friendly Name (used in the Verification message templates)
  • Code Length
  • Skip sending SMS to Landlines
  • Requiring DTMF Input for Voice Verifications
  • Enabling Twilio Lookup

The example below shows different friendly names and code lengths used in our message templates.

sms example friendly name and code length

Service Response Properties

These fields are returned in the output JSON response. The type SID<VA> is a unique ID starting with the letters VA.

Names in PHP format
sid
sid<VA> Not PII

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

accountSid
sid<AC> Not PII

The SID of the Account that created the Service resource.

friendlyName
文字列 Not PII

The string that you assigned to describe the verification service. This value should not contain PII.

codeLength
integer Not PII

The length of the verification code to generate.

lookupEnabled
boolean Not PII

Whether to perform a lookup with each verification started and return info about the phone number.

psd2Enabled
boolean Not PII

Whether to pass PSD2 transaction parameters when starting a verification.

skipSmsToLandlines
boolean Not PII

Whether to skip sending SMS verifications to landlines. Requires lookup_enabled.

dtmfInputRequired
boolean Not PII

Whether to ask the user to press a number before delivering the verify code in a phone call.

ttsName
文字列 Not PII

The name of an alternative text-to-speech service to use in phone calls. Applies only to TTS languages.

dateCreated
date_time<iso8601> Not PII

The date and time in GMT when the resource was created specified in RFC 2822 format.

dateUpdated
date_time<iso8601> Not PII

The date and time in GMT when the resource was last updated specified in RFC 2822 format.

url
url Not PII

The absolute URL of the resource.

links
uri_map Not PII

The URLs of related resources.

Create a Verification Service

post
https://verify.twilio.com/v2/Services

These are the available input parameters for creating a Service.

パラメーター
Names in None format
friendly_name
必須
post 文字列 Not PII

A descriptive string that you create to describe the verification service. It can be up to 64 characters long. This value should not contain PII.

code_length
オプション
post integer Not PII

The length of the verification code to generate. Must be an integer value between 4 and 10, inclusive.

lookup_enabled
オプション
post boolean Not PII

Whether to perform a lookup with each verification started and return info about the phone number.

skip_sms_to_landlines
オプション
post boolean Not PII

Whether to skip sending SMS verifications to landlines. Requires lookup_enabled.

dtmf_input_required
オプション
post boolean Not PII

Whether to ask the user to press a number before delivering the verify code in a phone call.

tts_name
オプション
post 文字列 Not PII

The name of an alternative text-to-speech service to use in phone calls. Applies only to TTS languages.

psd2_enabled
オプション
post boolean Not PII

Whether to pass PSD2 transaction parameters when starting a verification.

例 1
        
        
        
        
        例 2
              
              
              
              

              See Verifying Transactions for PSD2 for more information.

              Fetch a Service

              GET
              https://verify.twilio.com/v2/Services/{Sid}
              パラメーター
              Names in None format
              sid
              必須
              GET sid<VA> Not PII

              The Twilio-provided string that uniquely identifies the Verification Service resource to fetch.

              例 1
                    
                    
                    
                    

                    全Serviceを一覧する

                    GET
                    https://verify.twilio.com/v2/Services
                    例 1
                          
                          
                          
                          

                          Serviceを更新する

                          post
                          https://verify.twilio.com/v2/Services/{Sid}

                          These are the available input parameters for updating a Service. The type SID<VA> is a unique ID starting with the letters VA.

                          パラメーター
                          Names in None format
                          sid
                          必須
                          post sid<VA> Not PII

                          The Twilio-provided string that uniquely identifies the Service resource to update.

                          friendly_name
                          オプション
                          post 文字列 Not PII

                          A descriptive string that you create to describe the verification service. It can be up to 64 characters long. This value should not contain PII.

                          code_length
                          オプション
                          post integer Not PII

                          The length of the verification code to generate. Must be an integer value between 4 and 10, inclusive.

                          lookup_enabled
                          オプション
                          post boolean Not PII

                          Whether to perform a lookup with each verification started and return info about the phone number.

                          skip_sms_to_landlines
                          オプション
                          post boolean Not PII

                          Whether to skip sending SMS verifications to landlines. Requires lookup_enabled.

                          dtmf_input_required
                          オプション
                          post boolean Not PII

                          Whether to ask the user to press a number before delivering the verify code in a phone call.

                          tts_name
                          オプション
                          post 文字列 Not PII

                          The name of an alternative text-to-speech service to use in phone calls. Applies only to TTS languages.

                          psd2_enabled
                          オプション
                          post boolean Not PII

                          Whether to pass PSD2 transaction parameters when starting a verification.

                          例 1
                                
                                
                                
                                
                                例 2
                                      
                                      
                                      
                                      

                                      Serviceを削除する

                                      削除する
                                      https://verify.twilio.com/v2/Services/{Sid}
                                      パラメーター
                                      Names in None format
                                      sid
                                      必須
                                      削除する sid<VA> Not PII

                                      The Twilio-provided string that uniquely identifies the Verification Service resource to delete.

                                      例 1
                                            
                                            
                                            
                                            
                                            Rate this page:

                                            ヘルプが必要ですか?

                                            誰しもが一度は考える「コーディングって難しい」。そんな時は、お問い合わせフォームから質問してください。 または、Stack Overflow でTwilioタグのついた情報から欲しいものを探してみましょう。