🏠 Home | 📚 Documentation | 📋 Examples | 🔌 API | 💻 CLI |
The InvOCR REST API provides endpoints for document conversion and OCR processing.
http://localhost:8000
Currently no authentication required for local development.
GET /health
Returns system health status.
GET /info
Returns supported formats, languages, and features.
POST /convert
Convert uploaded file to specified format.
Parameters:
file
(file): Input filetarget_format
(string): Output format (json, xml, html, pdf)languages
(string): Comma-separated language codesasync_processing
(boolean): Process in backgroundGET /status/{job_id}
Get conversion job status.
GET /download/{job_id}
Download conversion result.
# Convert PDF to JSON
curl -X POST "http://localhost:8000/convert" \
-F "file=@invoice.pdf" \
-F "target_format=json"
# Check status
curl "http://localhost:8000/status/job-id"
# Download result
curl "http://localhost:8000/download/job-id" -o result.json