For a deeper look into our World Check One API, look into:

Overview |  Quickstart |  Documentation |  Downloads

question

Upvotes
Accepted
35 15 20 21

401 Unauthorised Error using Java program - works fine in Postman

We have tired the WorldCheck One API through Postman (Postman Intercepter enabled), and it responses properly. However, our development team found the APIs give 401 Unauthorised Error in the Java program, GET & POST APIs are both fail. We have provided HTTP request Headers according to the API spec and Postman collection, we still could not request WorldCheck One APIs through Java program. Also would it need any cookies assigned in the HTTP request?

world-checkworld-check-one
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvote
Accepted
408 3 4 5

For authorization following three things are key:

-An invalid or expired API key – Sometimes keys get malformed when being auto sent by few tools

-An invalid HMAC signature – you are taking correct fields to generate the same

-Timing with the Date header

Cookies are not required to be assigned in the HTTP request

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
1 0 0 2

I have the same problem and don't know how to assign Cookies in the Http request. Please help

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.