I’m trying to call a REST Api throught https protocol using the API-key auth.
If I try to call it throught a curl command it works and it response with an error in json format.
I expect to get the same error in webMethods.
I have configured a client:http invoke, where I have set an header field called “API-KEY” but when I try to execute the service I get this error :
Hello,
Authorisation errors are treated as exceptions in webMethods flow. The exception is showing that the error is the same. You need to wrap your call in a try catch if you want to trap this error.
If you are using the API Gateway to enforce your authorisation policy then you need to set the header key as
‘x-Gateway-APIKey’