GET
/
prod
/
v1
/
files
/
{fileId}
/
ocr
Get file ocr
curl --request GET \
  --url https://api.orion.file.ai/prod/v1/files/{fileId}/ocr \
  --header 'x-api-key: <api-key>'
{
  "ocr": [
    {
      "page_number": 1,
      "text": "OCR Result page 1 example"
    },
    {
      "page_number": 2,
      "text": "OCR Result page 2 example"
    }
  ]
}

Authorizations

x-api-key
string
header
required

API key for authentication

Path Parameters

fileId
string
required

Response

200
application/json

The file ocr is found

The response is of type object.