Acces code is mandatory to make request by entityType 'RIC'?

Options

Hi,

I want to retrieve data for search by RIC.It works if I make request in below format:

GET https://api.thomsonreuters.com/permid/search?q=TRI&access-token=<token&gt;

This needs access-token as well. Access-tokens are mandatory to retrieve results ?

Regards,

Priyanka

Tagged:

Best Answer

  • Jirapongse
    Jirapongse ✭✭✭✭✭
    Answer ✓

    @priyanka.srivastava

    To use the API, access-token is mandatory. It is an unique access token allocated to a registered user.

    If you don't specify access-token in the request, you will get the 401 Unauthorized error with this text in the body.

    {
    "fault": {
    "faultstring": "Failed to resolve API Key variable request.header.X-AG-Access-Token",
    "detail": {
    "errorcode": "steps.oauth.v2.FailedToResolveAPIKey"
    }
    }
    }

    The access token can be passed as:

    • The access-token URL parameter: access-token=<token>
    • The x-ag-access-token HTTP header: x-ag-access-token: <token>