ApplicationId (256), and scope (trapi)

Hi

My question is first regarding the scope parameter which we send to get the authentication info about the access_token and refresh token. Is it compulsory to pass and is it ever going to be changed later from "trapi"?

Other question is regarding another parameter "Application ID" so combining here. Is the application Id going to be same for all users? Is it possible to change? and what does it represent actually if it is same for all?


Best Answer

  • Gurpreet
    Gurpreet admin
    Answer ✓

    Hi @bansalshah You can read up on the scope here. Essentially, trapi is a root level scope and by specifying it, you are asking for an Access token, which can be used for any sub-scope API call. If for e.g. you get a token with sub scope like - trapi.data.esg.read, the app will not be able to invoke streaming prices API call with that token.

    Practically, your application can use root level scope for everything. The app ID is something that you define and is for your own purposes only. It can be any 8 bit number and historically comes from DACS entitlement enforcement. Then, a user could check the ADS logs and see which APP ID is connected and such.

Answers