Hi @Avni Bhatt ,
Thank you for using the Microsoft Q&A.
Regarding your error while using the REST API, Kindly issue the POST request followed by GET request in the postman to the document intelligence custom model. Once the POST request was done in the Postman / curl command(in cmd window), we get the "Operation Location", from where we can check the model analysis results. Kindly use this "Operation Location" URL in the GET request in postman. Please also provide the API key , content type etc in the GET request as well and click on "SEND" button in postman.
Note : The headers, body in the postman are important ones to configure while sending the POST request followed by the GET request. POST request is used to submit the forms inside your Blob container to the custom model (URL mentioned in POST request). Then the GET request is used to fetch the model results.
Also check on below in your postman or CURL command:
- Ensure the API key is correct.
- Confirm that the endpoint URL is accurate.
- API documentation - Document Models - Analyze Document - REST API (Azure Azure AI Services) | Microsoft Learn
Screenshots from Postman :
POST:
Inside the "Body" of POST request in postman, please give your BLOB container SAS URL, as shown below :
Take a note of the "Operation Location" from above step, after clicking on the "SEND" button.
**GET
**
I hope this helps! Thanks!