I am using RDP API to get data from resource https://api.refinitiv.com/data/funds/v1/assets
In the rquest, a Bearer type token obtained from https://api.refinitiv.com/auth/oauth2/v1/token is being sent.
The problem is that I am getting the following error:
### Request
POST https://api.refinitiv.com/data/funds/v1/assets
Authorization: Bearer XXXXXXXXXXXXXXXXXXX
{"properties": [{"name": "prices"},{"name": "CumulativeCalcs"},{"name": "RollingPerformance"}], "universe":{"symbols": ["LP68092650","LP68092651"]}}
### Response
{
"error": {
"id": "5aff0b0e-fc14-40ab-8357-b424ea44b73c",
"code": "insufficient_scope",
"message": "access denied. Scopes required to access the resource: [trapi.data.funds.assets.read] or [trapi.demo-access]. Missing scopes: [trapi.data.funds.assets.read trapi.demo-access]",
"status": "Forbidden"
}
}
I have tried to generate the token in the following ways, obtaining the same error in both cases
### REQUEST A ###
POST https://api.refinitiv.com/auth/oauth2/v1/token
Content-Type: application/x-www-form-urlencoded
client_id=XXXXXXXXXXX
&scope=trapi
&password=XXXXXXXXXXX
&grant_type=password
&takeExclusiveSignOnControl=true
&username=XXXXXXXXXXX
--------------------------
### REQUEST B ###
POST https://api.refinitiv.com/auth/oauth2/v1/token
Content-Type: application/x-www-form-urlencoded
client_id=XXXXXXXXXXX
&scope=trapi.data.funds.assets.read
&password=XXXXXXXXXXX
&grant_type=password
&takeExclusiveSignOnControl=true
&username=XXXXXXXXXXX
It should be noted that the service responded correctly in recent days through REQUEST A
What could be the problem?