Hi everyone,
I want to use the Form Recognizer REST API to analyze a document and then retrieve the results. I am using the quickstart guide here (https://learn.microsoft.com/en-us/azure/applied-ai-services/form-recognizer/quickstarts/try-v3-rest-api) and the sample document for a Layout model. I am using the POST request curl command (curl -v -i POST "{endpoint}/formrecognizer/documentModels/{modelID}:analyze?api-version=2022-06-30-preview" -H "Content-Type: application/json" -H "Ocp-Apim-Subscription-Key: {key}" --data-ascii "{'urlSource': '{your-document-url}'}") and have replaced {endpoint}, {key}, {modelID} and {your-document-url} with the correct values. However, when I run this, I keep getting the following error:
{"error":{"code":"InvalidArgument","message":"Invalid argument.","innererror":{"code":"ParameterMissing","message":"The parameter urlSource or base64Source is required."}}}
I'm confused because I have the urlSource parameter filled, I put the url to the sample document. Any guidance would be appreciated, thanks!