Skip to main content

OCR-Single-Sync API

HTTP Method: POST

Endpoint

/upload-file-smart-ocr


Request Headers

HeaderValue
x-api-keyYour API key provided by Fracto

Request Parameters

ParameterTypeRequiredDescriptionAccepted Values
filefileYesThe document file to be parsedPDF, JPEG, PNG, TIFF
parserAppstringYesIdentifier for the parser applicatione.g., 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 for complex or low-quality documents (default: false)true, false
notesstringNoAdd additional notes or metadata for post-processing workflowsAny string

Sample cURL Request

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