Reference examples to quickly integrate document upload functionality with APIs
batch_number
) and several file identifiers (file_id
) for subsequent business workflow queries and result retrieval.
Docflow supports common image formats, PDF, and Office file formats, with multi-page documents supporting up to 1000 pages. You can refer to the more detailed File Format Support and Limitations page.
workspace_id
: Workspace ID. Refer to the Get Workspace ID document.category
: File category (e.g., invoice)batch_number
: Batch number, automatically generated by the system when not provided (recommended: use the same batch number for multiple files in the same batch for easier querying)auto_verify_vat
: Whether to enable invoice verification, default falsesplit_flag
: Whether to perform file splitting, default false (see File Splitting section)crop_flag
: Whether to perform multi-image cropping, default false (see Multi-Image Cropping section)target_process
: Target processing type, options are classify
or extract
.target_process
is classify
, the workflow ends at classification to achieve classification-only requirements.file
fields in the same request:result.batch_number
and a list of successfully uploaded files
.
batch_number
.batch_number
, and subsequent requests reuse this batch_number
to associate remaining files.batch_number
to query processing results for that batch: