401 error

Kholoud
Kholoud LSEG
edited November 2024 in World-Check One

Dear API team,

One of our clients is testing API and is having issues and getting 401 errors, please see below:

we are using Powershell to “Invoke-WebRequest @params“. The params for one of the API calls that we are getting 401 Unauthorized errors on are below (this has been converted into json to display so it can be read easier). Please note that we have tried other calls which have all resulted in 401 as well. This code was working last week and has not been changed since.

{

    "Proxy":  http://proxy:8080,

    "Method":  "GET",

    "ProxyUseDefaultCredentials":  true,

    "Headers":  {

                    "Authorization":  "Signature keyId="***REMOVED***",algorithm="hmac-sha256",headers="(request-target): get /v2/reference/countries`nhost: api-worldcheck.refinitiv.com`ndate: Thu, 28 Nov 2024 14:07:12 GMT",signature="***REMOVED***"",

                    "Date":  "Thu, 28 Nov 2024 14:07:12 GMT"

                },

    "URI":  https://api-worldcheck.refinitiv.com/v2/reference/countries

}

If helpful, the headers within “Authorization” are:

(request-target): get /v2/reference/countries

host: api-worldcheck.refinitiv.com

date: Thu, 28 Nov 2024 14:07:12 GMT

let me know if you can support here,

Answers