跳转到主要内容
POST
/
api
/
app-api
/
sip
/
platform
/
v2
/
review
/
task
/
result
获取审核结果
curl --request POST \
  --url https://docflow.textin.com/api/app-api/sip/platform/v2/review/task/result \
  --header 'Content-Type: application/json' \
  --header 'x-ti-app-id: <api-key>' \
  --header 'x-ti-secret-code: <api-key>' \
  --data '
{
  "workspace_id": "1234567890",
  "task_id": "31415926",
  "with_task_detail_url": false
}
'
{
  "code": 200,
  "msg": "<string>",
  "result": {
    "task_id": "31415926",
    "task_name": "审核任务1",
    "task_detail_url": "<string>",
    "status": 0,
    "rule_repo": {
      "repo_id": "31415926",
      "name": "审核规则库1"
    },
    "extract_task_ids": [
      "1234567890"
    ],
    "statistics": {
      "pass_count": 100,
      "failure_count": 100,
      "error_count": 100
    },
    "groups": [
      {
        "group_id": "31415926",
        "group_name": "审核规则组1",
        "review_tasks": [
          {
            "rule_task_id": "31415926",
            "rule_id": "31415926",
            "rule_name": "审核规则1",
            "risk_level": 10,
            "prompt": "审核规则提示词",
            "review_result": 0,
            "reasoning": "审核依据",
            "anchors": [
              {
                "start_pos": 123,
                "end_pos": 123,
                "text": "<string>",
                "vertices": [
                  [
                    0,
                    0,
                    100,
                    0,
                    100,
                    100,
                    0,
                    100
                  ]
                ],
                "file_id": "1234567890",
                "extract_task_id": "1234567890",
                "page": 1,
                "source": "ocr",
                "file_category": "发票",
                "field_name": "发票代码"
              }
            ],
            "audit_result": 1,
            "audit_message": "人工复核批注"
          }
        ]
      }
    ]
  }
}

授权

x-ti-app-id
string
header
必填
x-ti-secret-code
string
header
必填

请求体

application/json
workspace_id
string
必填

空间ID

示例:

"1234567890"

task_id
string
必填

审核任务ID

示例:

"31415926"

with_task_detail_url
boolean

是否返回审核详情页URL

示例:

false

响应

200 - application/json

成功获取审核任务结果

code
integer
必填

状态码

示例:

200

msg
string
必填

状态描述

result
object