Intellipaat Back

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

ASKING THIS HERE AT THE EXPLICIT REQUEST OF THE MICROSOFT AZURE SUPPORT TEAM.

I've been attempting to call the MS Luis.ai programmatic API (bit.ly/2iev01n) and have been receiving a 401 unauthorized response to every request. Here's a simple GET example: https://api.projectoxford.ai/luis/v1.0/prog/apps/{appId}/entities?subscription-key={subscription_key}.

I am providing my appId from the Luis.ai GUI (as specified by the API docs), here:
Luis.ai 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:
https://api.projectoxford.ai/luis/v2.0/apps/{appId}?subscription-key={subscription_key}&verbose=true&q={utterance}

NOTE: There doesn't seem to be a Luis.ai 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 LUIS.ai programmatic API key. 

It can found by using: LUIS.ai 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.

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...