Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
JavaScript
const options = { method: 'POST', headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'}, body: JSON.stringify({app_id: 'app_abc123', file_url: 'https://example.com/invoice.pdf'}) }; fetch('https://adp.laiye.com/open/agentic_doc_processor/{tenant_name}/v1/app/doc/extract', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
{ "code": "<string>", "message": "<string>", "tips": "<string>", "data": { "task_id": "<string>", "file_url": "<string>", "status": 123, "doc_recognize_result": [ {} ], "extraction_result": [ {} ], "classify_result": {} } }
针对国内通用票据文件进行字段抽取。返回字段和分类结果由预置应用配置决定。
租户名称,默认 laiye。
国内通用票据预置应用的唯一标识。
待抽取文件 Base64,与 file_url 二选一。
待抽取文件 URL,与 file_base64 二选一。
抽取结果。
Show child attributes