postman post request for Azure FormRecognizer does not work

1.6k Views Asked by At

I am trying to follow the instructions here to analyze a form. I have already trained a model and it works when I use the python code. Now, I would like to be able to get the results also per postman but it doesn't work.

You can see my post request here: enter image description here enter image description here

As you see, I have added the Content-Type and the Ocp-Apim-Subscription-Key. However, I don't get any json as the answer, though I get status: 202 Accepted.

Can anybody tell me, what I have done wrong?

Thanks in advance,

2

There are 2 best solutions below

2
On BEST ANSWER

If you have got a response with code 202 Accepted, this means Azure has accepted your request and start to recognize your images.

In response header, there will be an URL named: operation-location enter image description here

You can get the result that you requested for via this URL: enter image description here

0
On

Please also use the below reference REST APIs as the linked share in the original message is for Form Recognizer v1 release which has been deprecated. Please use the Form Recognizer v2 or v2.1 release.

Form Recognizer v2.1 release REST API reference

Form Recognizer v2.0 release REST API reference