メニュー

API Authentication

前提条件

Before you start exporting data you will need to have:

API Authentication

The procedure requires 2 API calls.

The first authenticates and returns an SST (Super Secured Token) using your login and password. Once the SST is available, a TT (Temporary Token) must be requested. The TT has to be included in any subsequent API calls.

SuperSecure Tokens (SST) have a default lifetime of two weeks. Temporary Token (TT) is valid for 10 minutes.

In order to obtain the password for direct login, please contact the Flex Insights Support Team at team-wfo@twilio.com.

        
        
        
        

        If you received a status code of 429, this means that you made too many invalid login requests. Check your credentials, and look for the Retry-After HTTP header in the response: this specifies the period (in seconds) after which you can attempt to log in again.

        Retrieving the Temporary Token

        You must have a valid Temporary Token (TT) for all subsequent calls to the API. To get a valid TT, use the following API:

              
              
              
              

              If you are using a REST client which supports cookies, on the initial login request you can set "verify_level": 0 and use the returned cookie called GDCAuthTT (which contains the Temporary Token) directly in subsequent API calls. This way, you don't need to adjust the Header manually.

              Once the Temporary Token expires, you have to call the Token API to refresh it.

              APIの使用方法

              For any subsequent API calls, ensure that the TT is always passed in the headers as a cookie with the name GDCAuthTT

                    
                    
                    
                    

                    After successful authentication you can Export Data from Flex Insights via API.

                    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?

                    ヘルプが必要ですか?

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