メニュー

Expand
ページを評価:

Verify API

As part of Twilio's account security offerings, the Twilio Verify API makes it simple to add user verification to your web application. It supports codes sent via voice, SMS, and email.

ベースURL

このドキュメントで参照されるベースURLは次の通りです。

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

TwilioのREST APIはHTTPS経由で提供されます。 データのプライバシーを確保するため、暗号化されていないHTTPはサポートされません。

認証

HTTP requests to the REST API are protected with HTTP Basic authentication. To learn more about how Twilio handles authentication, please refer to our security documentation. In short, you will use your Twilio account SID as the username and your auth token as the password for HTTP Basic authentication.

curl -XPOST https://verify.twilio.com/v2/Services \
    -d FriendlyName=MyServiceName \
    -u '[YOUR ACCOUNT SID]:[YOUR AUTH TOKEN]'

You can find your account SID and auth token in your console.

User Verification Workflow

This guide shows the 3 steps to completing a basic verification. Follow the links for more documentation on advanced features such as service configuration, custom codes, rate limiting, PSD2 compliance, and more.

        
        
        
        

        Create a Service in one of two ways:

        1. In the Twilio Verify Console
        2. Using the API (code sample on this page)

        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
        • ...and more

        One verification service can be used to send multiple verification tokens, it is not necessary to create a new service each time.

              
              
              
              

              This will send a token to the end user through the specified channel. Newly created verifications will show a status of pending. Supported channels are sms, call, and email.

              Verification documentation.

                    
                    
                    
                    

                    This will check whether the user-provided token is correct.

                    token Status in response
                    Correct approved
                    Incorrect pending

                    VerificationCheck documentation.

                    You made it through the Verify API Overview. To protect your service against fraud, view our guidance on Preventing Toll Fraud when using Verify.

                    ページを評価:

                    ヘルプが必要ですか?

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

                          
                          
                          

                          フィードバックくださりありがとうございます!

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

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

                          Thanks for your feedback!

                          Refer us and get $10 in 3 simple steps!

                          ステップ1

                          Get link

                          Get a free personal referral link here

                          ステップ2:

                          Give $10

                          Your user signs up and upgrade using link

                          ステップ3

                          Get $10

                          1,250 free SMSes
                          OR 1,000 free voice mins
                          OR 12,000 chats
                          OR more