OCR-Single-Sync API
HTTP Method: POST
Endpoint
/upload-file-smart-ocr
Request Headers
| Header | Value |
|---|---|
| x-api-key | Your API key provided by Fracto |
Request Parameters
| Parameter | Type | Required | Description | Accepted Values |
|---|---|---|---|---|
file | file | Yes | The document file to be parsed | PDF, JPEG, PNG, TIFF |
parserApp | string | Yes | Identifier for the parser application | e.g., asfesdfsdweq3e |
page_range | string | No | Specify 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_range | string | No | Specify the page number to extract QR code data. | Format: "1,3-5" for pages 1, 3, 4, and 5. |
model | string | No | Select the intelligence model for processing. Example: "v1" for advanced, "v2" for Light. | v1, v2 |
extra_accuracy | string | No | Enable enhanced accuracy for complex or low-quality documents (default: false) | true, false |
notes | string | No | Add additional notes or metadata for post-processing workflows | Any 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"' \