Skip to Content
Apr 17, 2019 at 11:28 AM

401 unauthorized error for REST API


Hi All,

We have requirement to connect with third party API synchronously via Rest adapter in the receiver side. The third-party system has provided us the API key and the API secret key. Currently we are able to test the API using Postman.

In PO we have configured the Rest receiver channel with same endpoint. We do not have clear idea on how to use the API and API key in the channel level to enable authorization. So currently when doing a ping test it gives an 401 unauthorized error.

Also the HTTP message posted via Postman gives authorization header in the below format.

Authorization: Signature keyId="{value}",algorithm="hmac-sha256",headers="(request-target) host date content-type content-length”, signature="{value}"

Any help on this on how to configure this parameters in channel and enable authentication.