All Products
Search
Document Center

Energy Expert:GetDocExtractionResult

Last Updated:Aug 19, 2025
This topic is generated by a machine translation engine without any human intervention. ALIBABA CLOUD DOES NOT GUARANTEE THE ACCURACY OF MACHINE TRANSLATED CONTENT. To request a human-translated version of this topic or provide feedback on this translation, please include it in the feedback form.

For Querying Information Extraction Result. The input parameter taskId is obtained from the taskId returned by the interfaces SubmitDocExtractionTaskAdvance or SubmitDocExtractionTask. The query results can reflect one of three statuses: processing, successfully completed, or failed.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
energy:GetDocExtractionResultnone
*All Resources
*
    none
none

Request syntax

POST /api/v2/aidoc/document/getDocExtractionResult HTTP/1.1

Request parameters

ParameterTypeRequiredDescriptionExample
bodyobjectNo

Request body parameters.

taskIdstringYes
  • Task ID.
  • taskId is obtained from the SubmitDocExtractionTaskAdvance and SubmitDocExtractionTask interfaces.
97693b4c-17a8-4198-aa28-798d3c855577mhrv

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

requestIdstring

ID of the request

83A5A7DD-8974-5769-952E-590A97BEA34E
dataobject

Returned data structure.

kvListInfoarray<object>

Details of document extraction results

KvListInfoobject

Details of document extraction results

keyNamestring

Field key name

Tenant
keyValuestring

Field key value

Alibaba Cloud XXX Co., Ltd.
contextobject

Recalled content

keyarray

Details of key recall information

KeyListContentItem

Details of key recall information

bhv_trace_info_invalid
valuearray

Details of value recall information

ValueLIstContentItem

Details of value recall information

[{'Id': 'st-265b3d6a-91765', 'Name': 'Sheet3'}, {'Id': 'kgqie6hm', 'Name': 'Sheet1'}, {'Id': 'st-26383f2c-38267', 'Name': 'Sheet2'}]
confidenceobject

Confidence level

keyConfidencedouble

Key confidence level

0.9994202852249146
valueConfidencedouble

value confidence level

0.9794202852249146

Examples

Sample success responses

JSONformat

{
  "requestId": "83A5A7DD-8974-5769-952E-590A97BEA34E",
  "data": {
    "kvListInfo": [
      {
        "keyName": "Tenant",
        "keyValue": "Alibaba Cloud XXX Co., Ltd.",
        "context": {
          "key": [
            {
              "score": 0.45,
              "type": "img",
              "extInfo": [
                {
                  "alignment": "center",
                  "index": 8,
                  "level": 2,
                  "pageNum": [
                    1
                  ],
                  "pos": [
                    {
                      "x": 1,
                      "y": 2
                    }
                  ],
                  "subType": "picture",
                  "text": "content",
                  "type": "table",
                  "uniqueId": "88c712db271443dd4e3697cb9b5dab3a"
                }
              ],
              "text": "content"
            }
          ],
          "value": [
            {
              "score": 0.45,
              "type": "img",
              "extInfo": [
                {
                  "alignment": "center",
                  "index": 8,
                  "level": 2,
                  "pageNum": [
                    1
                  ],
                  "pos": [
                    {
                      "x": 1,
                      "y": 2
                    }
                  ],
                  "subType": "picture",
                  "text": "content",
                  "type": "table",
                  "uniqueId": "88c712db271443dd4e3697cb9b5dab3a"
                }
              ],
              "text": "content"
            }
          ],
          "confidence": {
            "keyConfidence": 0.9994202852249146,
            "valueConfidence": 0.9794202852249146
          }
        }
      }
    ]
  }
}

Error codes

For a list of error codes, visit the Service error codes.