Authorization Error on POST
Although I’m able to execute GET requests without any issue, I get a 401 Unauthorized error on POST requests (e.g create simple case).
I have followed the instructions on the documentation to create a simple case, meaning I got the top level groups first and updated the group-id on the postman environment.
Keep in mind that I’m using the API key and secret of the Pilot environment.
I'm attaching the request/response headers from the postman console
Request Headers
Date: Mon, 31 Aug 2020 07:41:21 GMT
Content-Type: application/json
Authorization: Signature keyId="XXXXXXXXXXXXXXXXXXXXXXXXX",algorithm="hmac-sha256",headers="(request-target) host date content-type content-length",signature="PibvdrlXE0eyfVZ5XwhlI9g86ksQwaCLV2KlEeu5dqc="
Content-Length: 200
User-Agent: PostmanRuntime/7.26.3
Accept: */*
Cache-Control: no-cache
Postman-Token: 5c237e7d-5a46-4863-a1ad-85af386bffdb
Host: rms-world-check-one-api-pilot.thomsonreuters.com
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Response Headers
Strict-Transport-Security: max-age=15552000, includeSubdomains
Authorization: WWW-Authenticate: Signature realm="World-Check One API",algorithm="hmac-sha256",headers="(request-target) host date content-type content-length"
Transfer-Encoding: chunked
Date: Mon, 31 Aug 2020 07:41:21 GMT
Server: ""
Best Answer
-
Hi Prabhjyot.Mandla , apparently the problem was caused by an outdated environment while the api version is 2.2
Now it is resolved!
Thank you
1
Answers
-
Masked the API credentials.
0 -
Thank you for your query.
Could you please share the request body which you are sending?
0 -
Sure, thanks in advance
Request Body
{ "secondaryFields": [], "entityType": "INDIVIDUAL", "customFields": [], "groupId": "5nzbfqa0d1z71ex1ivbnh31f1", "providerTypes": [ "WATCHLIST" ], "name": "putin" }
0 -
Thank you for the payload.
The provided payload has the generates a content length of 164, where as in the request header provided by you, the content length appears to be 200. This possible could be the reason of error 401. Can you please check, if the content length which is being calculated is correct? Also, can you please confirm if you are using postman, where you are getting 401, or any other code.
0 -
I'm getting the error on postman and by using the sample project of refinitiv world check-one api v2.2. I have followed the exact same instructions as per the website
0 -
Can you please share the request and response headers along with the request body, so we may investigate?
0 -
Sure, here you go:
Request Headers
Date: Tue, 01 Sep 2020 07:40:16 GMT
Content-Type: application/json
Authorization: Signature keyId="XXXXXXXXXXXXXXXXXXX",algorithm="hmac-sha256",headers="(request-target) host date content-type content-length",signature="L7Qez9liURUN9efsGOop2PYajR5wooSsZP0la9WjimI="
Content-Length: 200
User-Agent: PostmanRuntime/7.26.3
Accept: */*
Cache-Control: no-cache
Postman-Token: 7edf38c0-bdb2-4c8c-9898-6ae340bf9b3e
Host: rms-world-check-one-api-pilot.thomsonreuters.com
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Request Body
{
"groupId": "5nzbfqa0d1z71ex1ivbnh31f1",
"entityType": "INDIVIDUAL",
"providerTypes": [
"WATCHLIST"
],
"name": "putin",
"secondaryFields": [],
"customFields": []
}
Response Headers
Strict-Transport-Security: max-age=15552000, includeSubdomains
Authorization: WWW-Authenticate: Signature realm="World-Check One API",algorithm="hmac-sha256",headers="(request-target) host date content-type content-length"
Transfer-Encoding: chunked
Date: Tue, 01 Sep 2020 07:40:16 GMT
Server: ""
0 -
Thank you for the details.
I am getting the content length of the payload as 173, where as you are getting 200 for the same payload. If you are getting error via postman, please use jsonlint.com to re-format the payload and try sending the request again using the re-formatted payload. Please check the content length.
Do let us know how it goes.
0 -
Thank you for the update and the confirmation.
0
Categories
- All Categories
- 6 AHS
- 37 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛