创建异步解析任务
智能文档解析-新版
异步解析
创建异步文档解析任务,立即返回job_id,通过job_id查询处理状态和结果。
适用于处理大文件或批量文件,避免HTTP超时限制。
POST
创建异步解析任务
授权
请求体
multipart/form-data
上传文档文件,与 file_url 二选一
文档 URL,与 file 二选一
解析参数配置
示例:
{
"document": { "password": "example-pdf-password" },
"capabilities": {
"include_hierarchy": true,
"include_inline_objects": true,
"include_char_details": true,
"include_image_data": true,
"include_table_structure": true,
"pages": true,
"title_tree": true,
"table_view": "html",
"remove_watermark": true,
"crop_dewarp": true
},
"scope": { "page_range": "1-2" },
"config": {
"force_engine": "textin",
"engine_params": {
"parse_mode": "scan",
"formula_level": 0,
"image_output_type": "url",
"recognize_chemical": true
}
}
}Webhook回调URL(可选),当任务完成或失败时会调用该URL。
Webhook请求格式:
- Method: POST
- Content-Type: application/json
- Body: {"job_id": "xxx", "status": "completed", "result_url": "https://..."}
示例:
"https://your-server.com/webhook"

