Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
in Azure by (45.3k points)


I've been attempting to call the MS programmatic API ( and have been receiving a 401 unauthorized response to every request. Here's a simple GET example:{appId}/entities?subscription-key={subscription_key}.

I am providing my appId from the GUI (as specified by the API docs), here: App Settings App Id

I am providing my subscription key from Azure (as specified by the API docs), here:
Azure Console

The app ID and subscription key, sourced from above, are the exact same as what I'm using to hit the query API successfully (see note at bottom). My account is pay-as-you-go (not free).

Am I doing something wrong here? Is this API deprecated, moved, down, or out-of-sync with the docs?

NOTE: I can manipulate my model through the online GUI but that approach will be far too manual for our business needs where our model will need to be programmatically updated as new business entities come into existence.

NOTE: The programmatic API is different from the query API which has this request URL, which is working fine for me:{appId}?subscription-key={subscription_key}&verbose=true&q={utterance}

NOTE: There doesn't seem to be a programmatic API for v2.0--which is why the URLs from the query and programmatic APIs have different versions.

1 Answer

0 votes
by (16.8k points)
edited by

You can find your programmatic API key. 

It can found by using: dashboard -> username (upper-right) -> settings in dropdown -> Subscription Keys tab -> Programmatic API Key

Are you interested in learning Azure from basics! Here's the right video for you on Azure provided by Intellipaat:

You cannot find it anywhere, not even alongside of any other key listings in the cognitive services or the LUIS.

Browse Categories