How RDP /auth/oauth2/v1/token requests token with multiple scopes?

I get the following error using either [trapi.cfs.publisher.read] or [trapi.cfs.subscriber.read] scope:

{"error":{"id":"7b15ef25-9c4a-420c-b681-feca036db41e","code":"insufficient_scope","message":"access denied. Scopes required to access the resource: [trapi.cfs.publisher.read] or [trapi.cfs.subscriber.read]. Missing scopes: [trapi.cfs.publisher.read trapi.cfs.subscriber.read]","status":"Forbidden"}}

How can I request a token with multiple scopes [trapi.cfs.publisher.read] and [trapi.cfs.subscriber.read] ?

Best Answer

  • Gurpreet
    Answer ✓

    Hi @ttse,

    If you request a token with root scope: trapi , all the sub scopes are automatically applied to it. The error message you are getting implies that your token does not have the CFS scopes, which is most likely due to your account permissions. Please contact your Refinitiv account manager to get access to RDP CFS API.


    You can read more about token scopes here.