I am trying to setup an HTTP Web request event in Workflow to an API we have in Azure. It uses Ocp-Apim-Subscription-Key as a header. I keep getting a 403 Forbidden when testing. I have tried all the options for the request header with no success. Any help would be much appreciated.
Question
Question
Workflow Ocp-Apim-Subscription-Key
Replies
I did not try this but according to this post there is a setting in Azure to enable Ocp-Apim-Subscription-Key header.
Hi Jason,
A quick review of the Azure API Management (APIM) docs seems to indicate that the name of the header itself is "Ocp-Apim-Subscription-Key" and the value is a random-looking string unique to your subscription that you get from APIM. That's the actual API key value.
The screenshot above shows "Ocp-Apim-Subscription-Key" as the header value, not the header name. The Workflow HTTP Web Request activity's Request Header's section's dropdown list has a bunch of pre-configured standards-based headers for convenience. If you need a custom header like you do in this case, you just type it in.
Example screenshot with a random string in the header value: