This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[FAQ] TI-API: How to use the "Authorize" Feature on API Portal?

I see the "Authorize" button on API Portal but I don't know how to use that feature. 

  • With latest API we are enabling Swagger features in our spec. Swagger provides "Authorize" and "Try out" features that customers can use to actually make the API call without writing a single line of code. 

    In order to use the "Authorize" or "Try out" feature, you will need to know your Consumer Key and Secret  (if you don't know then you can reach out to an Admin of your company account).

    As described here ( https://api-portal.ti.com/order-api-authentication ), in order to make an API call you need to generate an API Authentication token and thwn use that token while making a call.


    The "Authorize" feature allows customers to generate API Authentication token and use that token (seamlessly) while making the call. 

    In the Spec you can either create API Authentication token for all the end points in the spec or generate API Authentication token for every end point. 

    In the Below example 

    • "Authorize" Button on the top allows you to create a single API Authentication token for the whole spec. 
    • Whereas the individual "lock" on each end point allows you to create an API Authentication token for each individual end point, creating a one-to-one mapping. 

                      

    How to use the feature

    Step 1: Click on either the "Authorize" button or "lock" symbol

    Step 2:  Enter your  Consumer Key (aka client_id) and secret (aka client_secret) and click on "Authorize". 

                

    Step 3:  If successful you will see the "Authorize" button change to "Logout"

            

    You can close the window by clicking on Close. 

    Now an API Authentication Token has been generated and you can use "Try out" feature. 

**Attention** This is a public forum