Skip to main content

OCR-Single-Async API

Endpoint Information

  • HTTP Method: POST
  • Endpoint: /upload-file-smart-ocr-async

Request Headers

HeaderValue
x-api-keyYour API key from Fracto

Body Parameters (Form-Data)

ParameterTypeRequiredDescriptionAccepted values
filefileYesThe document file to be parsed (PDF, JPEG, PNG, TIFF).Uploaded file (PDF, JPEG, PNG, TIFF.).
parserAppstringYesThe parser application identifier, used to customize parsing for a specific document type.String (asfesdfsdweq3e)
page_rangestringNoSpecify the pages or range of pages to parse. Format: "1,3-5" for pages 1, 3, 4, and 5.Format: "1,3-5" for pages 1, 3, 4, and 5.
qr_rangestringNoSpecify the page number to extract QR code data.Format: "1,3-5" for pages 1, 3, 4, and 5.
modelstringNoSelect the intelligence model for processing. Example: "v1" for advanced, "v2" for Light.v1, v2
extra_accuracystringNoEnable enhanced accuracy mode for parsing complex or low-quality documents. Default is false.True, False
notesstringNoAdd additional notes or metadata to be passed along for post-processing workflows.String

Example Request (cURL)

curl --location 'https://prod-ml.fracto.tech/upload-file-smart-ocr-async' \
--header 'x-api-key: API_KEY' \
--form 'extra_accuracy="true"' \
--form 'file=@"/Users/gagankapoor/Downloads/CHENNAI-10.pdf"' \