API management URL is giving Missing subscription key Issue

If you enable the option to Require subscription for the product settings, then you must pass the below header Ocp-Apim-Subscription-Key. Even you provide subscription key, the key should belong to the product which the API includes. If you don't want the subsciption option, disable it in the product settings.


If you enable the option to Require subscription for the product settings, then you must pass the below header Ocp-Apim-Subscription-Key. Even you provide subscription key, the key should belong to the product which the API includes. Add the your APIs in your products.

  1. Select the Products menu/link from Azure portal.
  2. Select the product from list.
  3. Select the APIs from selected product options.
  4. Click on Add button and select your API from list and click on Select.

You are good to use your API using Postman or your code. You have to pass the subscription key in header key (Ocp-Apim-Subscription-Key).

You can find the subscription key (Primary/Secondary) in api developer portal on profile screen.