跳转到主要内容
GET
/
open
/
agentic_doc_processor
/
{tenant_name}
/
v1
/
app
/
doc
/
extract
/
query
/
task
/
{task_id}
查询文档抽取任务结果
const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};

fetch('https://adp.laiye.com/open/agentic_doc_processor/{tenant_name}/v1/app/doc/extract/query/task/{task_id}', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "code": "success",
  "message": "",
  "data": {
    "task_id": "94fe9b74e0e311f091505e345594c618",
    "file_url": "",
    "status": 4,
    "doc_recognize_result": [],
    "extraction_result": []
  }
}

授权

X-API-KEY
string
header
必填

用户接入 OpenAPI 的令牌,在应用 API 中查看。

路径参数

tenant_name
string
默认值:laiye
必填

租户名称,默认 laiye。

task_id
string
必填

任务 ID。

响应

文档抽取结果。

code

业务码。成功通常为 success 或 200。

message
string

返回信息。

tips
string | null

详细信息,默认为空。

data
object