メニュー

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?

Service Rate Limits

Twilio's new Verify 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.

Service Rate Limits makes it easy to leverage Twilio's battle-test rate limiting services to protect your phone verification deployment. With Service Rate Limits, you can define the keys to meter and limits to enforce when starting phone verifications. By enabling you to rate limit on end-user IP addresses, session IDs, or other unique IDs that are important to your application. Together with Verity's built-in platform protections Service Rate Limits give you turnkey protections with flexibility.

必要なもの:

  1. Create a Verification Service

If you are just getting started with Rate Limits in Verify we recommend checking out our guide on Using Verify Service Rate Limits to Protect Your Application before diving into the API.

Rate Limit Properties

Names in PHP format
sid
sid<RK> Not PII

A 34 character string that uniquely identifies this Rate Limit.

serviceSid
sid<VA> Not PII

The SID of the Service the resource is associated with.

accountSid
sid<AC> Not PII

The SID of the Account that created the Rate Limit resource.

uniqueName
文字列 Not PII

Provides a unique and addressable name to be assigned to this Rate Limit, assigned by the developer, to be optionally used in addition to SID.

description
文字列 Not PII

Description of this Rate Limit

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 URL of this resource.

links
uri_map Not PII

Create a Rate Limit

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

The Rate Limit represents the key that your application will provide when starting a phone verification request. For example, you may create a rate limit for an end-user IP address to prevent a malicious bot. See the section on Selecting Rate Limit Keys for information on this topic.

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

The SID of the Service the resource is associated with.

unique_name
必須
post 文字列 Not PII

Provides a unique and addressable name to be assigned to this Rate Limit, assigned by the developer, to be optionally used in addition to SID.

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

Description of this Rate Limit

例 1
        
        
        
        

        Fetch a Rate Limit

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

        The SID of the Service the resource is associated with.

        sid
        必須
        GET sid<RK> Not PII

        The Twilio-provided string that uniquely identifies the Rate Limit resource to fetch.

        例 1
              
              
              
              

              List all Rate Limits

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

              The SID of the Service the resource is associated with.

              例 1
                    
                    
                    
                    

                    Update a Rate Limit

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

                    The SID of the Service the resource is associated with.

                    sid
                    必須
                    post sid<RK> Not PII

                    The Twilio-provided string that uniquely identifies the Rate Limit resource to fetch.

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

                    Description of this Rate Limit

                    例 1
                          
                          
                          
                          

                          Delete a Rate Limit

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

                          The SID of the Service the resource is associated with.

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

                          The Twilio-provided string that uniquely identifies the Rate Limit resource to fetch.

                          例 1
                                
                                
                                
                                
                                Rate this page:

                                ヘルプが必要ですか?

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