v1

latestOpenAPI 3.1.02026-08-04552282508.9 KB
Batch Processing

Upload Batch

Upload multiple files as a batch for processing. Supports both authenticated users and guest mode (1 file, 46 pages max). Files are uploaded to S3 and batch records created in database. Processing starts automatically in background.

Args: files: List of files to upload (images, PDFs) batch_name: Optional name for the batch guest_session_id: Guest session ID (required if not authenticated) current_user: Authenticated user (optional for guest mode) s3_storage: S3 storage instance

Returns: BatchUploadResponse with batch_id and document details

post/api/batch/upload

Response

Successful Response

batch_idstring required
document_countinteger required
documentsobject[] required
messagestring required