Documentation Index
Fetch the complete documentation index at: https://docs.grigori.in/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The Jobs API handles document conversion requests, allowing you to upload files, track conversion progress, and download results.Create Job
Request
Content-Type:multipart/form-data
The document file to convert. Must be less than 100MB.
Output format for the converted document.Options:
md- Markdown formatjson- Structured JSON format
URL to receive job completion notifications.Format: Must be a valid HTTP/HTTPS URL
Enable OCR processing for images and scanned documents.
OCR provider to use when
use_ocr is enabled.Options:paddle- PaddleOCR (recommended)easyocr- EasyOCRmistral- Mistral AI (requires API key)
Response
Unique job identifier
Current job statusValues:
pending, processing, completed, failedJob progress percentage (0-100)
Original filename
Requested output format
Whether OCR is enabled
OCR provider used (when OCR is enabled)
Job creation timestamp (ISO 8601)
Last update timestamp (ISO 8601)
Webhook URL for notifications
Response Example
Get Job Status
Request
The unique identifier of the job
Response
Job identifier
Current job statusValues:
pending- Job queued for processingprocessing- Currently being convertedcompleted- Conversion finished successfullyfailed- Conversion failed
Completion percentage (0-100)
Original filename
Output format
Job creation timestamp
Last update timestamp
Completion timestamp (only when status is
completed or failed)Error details (only when status is
failed)Additional job metadata
Response Examples
- Pending
- Processing
- Completed
- Failed
Download Result
Request
The unique identifier of the completed job
Response
The response is the converted document file with appropriate headers:MIME type based on output formatValues:
text/markdown; charset=utf-8for Markdownapplication/json; charset=utf-8for JSON
Filename for downloadFormat:
attachment; filename="document.md"Error Responses
Bad Request - Job is not completed yet
Not Found - Job doesn’t exist or result file is missing
Job Status States
Polling for Completion
- Python
- JavaScript
Rate Limiting
File Size Limits
Default limit: 100MB per fileConfiguration: Set
MAX_FILE_SIZE environment variable (in bytes)413 Request Entity Too Large error.
Supported File Types
Documents
PDF, DOCX, RTF, TXT, MD
Presentations
PPTX, PPTM, POTX, POTM
Spreadsheets
XLSX, XLSM, XLS, CSV
Images
PNG, JPG, GIF, BMP, WebP, TIFF
Web
HTML, XML
Data
JSON, CSV
Next Steps
Health API
Check API health and readiness
Error Handling
Handle API errors properly
Webhooks
Set up real-time notifications
Examples
See complete integration examples