Authentication for Azure Form Recognizer

Sachindra Narayan 21 Reputation points
2021-06-22T18:32:21.457+00:00

For API authentication, I understand that Azure Form Recognizer uses "Ocp-Apim-Subscription-Key" which is the Azure Subscription ID. Also, shouldn't there be an API key as well, which we should be using for accessing any API across the subscription? Or is it there? Also, once the authentication is successful, do we have a kind of token which ensure the user remains authenticated for some time? How does this work? Moreover, as per the attached image, there are two API keys involved while using the AFR APIs. What is the use of those two keys?

IICZc.jpg

Azure AI Document Intelligence
Azure AI Document Intelligence
An Azure service that turns documents into usable data. Previously known as Azure Form Recognizer.
1,535 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. GiftA-MSFT 11,161 Reputation points
    2021-06-22T20:46:30.787+00:00

    Hi, thanks for reaching out. Your Azure Subscription ID is different from the Subscription Key of your resource. You can find your Subscription ID on the Overview tab. For authentication, Your API key is located on Keys and Endpoint tab (you can use Key 1 for authentication). Key 2 is more like a backup key and can useful for avoiding service interruption when when generating new keys. Hope this helps!