You are viewing limited content. For full access, please sign in.

Question

Question

Workflow Ocp-Apim-Subscription-Key

asked on February 16, 2023

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.

Api.PNG
Api.PNG (28 KB)
0 0

Replies

replied on February 16, 2023

I did not try this but according to this post there is a setting in Azure to enable Ocp-Apim-Subscription-Key header.

0 0
replied on February 16, 2023

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:

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.