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.
- Select the Products menu/link from Azure portal.
- Select the product from list.
- Select the APIs from selected product options.
- 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.