All Products
Search
Document Center

Energy Expert:SubmitDocumentAnalyzeJob

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.

The document parsing operation is used to extract the key content of a document and extract the key-value information from the document based on the preset key-value template. The document parsing operation is an asynchronous operation. You need to call the asynchronous submission service for document parsing and then call the GetDocumentAnalyzeResult operation to perform result polling. The asynchronous submission service supports two methods: local files and URL files. Call the SubmitDocumentAnalyzeJob operation to upload URL files. Call the SubmitDocumentAnalyzeJobAdvance operation to upload local files.

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:SubmitDocumentAnalyzeJobnone
*All Resources
*
    none
none

Request syntax

POST /api/v1/aidoc/document/submitDocumentAnalyzeJob HTTP/1.1

Request parameters

ParameterTypeRequiredDescriptionExample
fileUrlstringNo

Choose one between fileUrl and fileUrlObject:

  • fileUrl: Use the document URL method for a single document (supports documents with up to 1000 pages and within 100MB).

  • fileUrlObject: Use when calling the API via local file upload, for a single document (supports documents with up to 1000 pages and within 100MB).

Note Relationship between file parsing methods and supported document types.
  • Long Text RAG: Supports pdf, doc/docx, and up to 1000 pages
  • Image Processing: Supports pdf, jpg, jpeg, png, bmp
  • Long Text Understanding: Supports pdf, doc/docx, xls/xlsx
  • https://example.com/example.pdf
    fileNamestringYes

    The filename must include the file type extension.

    example.pdf
    templateIdstringYes

    The unique extraction template ID is used to specify the key-value pairs to be extracted from the document. You need to log in to the template management page to configure the template and obtain the corresponding template ID.

    templateCode
    folderIdstringYes

    Unique knowledge base folder ID, used for categorizing documents and controlling the scope of online Q&A queries. If empty, the document will be uploaded to the tenant's root directory.

    folderCode
    analysisTypestringYes

    The default extraction method is "doc", with the following optional values:

    • vl: Image processing
    • doc: Long text RAG (Retrieval-Augmented Generation)
    • docUnderstanding: Long text comprehension
    • recommender: Recommendation type
    doc

    Response parameters

    ParameterTypeDescriptionExample
    object

    Schema of Response

    requestIdstring

    Id of the request

    4A0AEC56-5C9A-5D47-93DF-7227836FFF82
    dataobject

    The data returned.

    jobIdstring

    The job ID.

    adkc-kk2k41-kk2ol-222424

    Examples

    Sample success responses

    JSONformat

    {
      "requestId": "4A0AEC56-5C9A-5D47-93DF-7227836FFF82",
      "data": {
        "jobId": "adkc-kk2k41-kk2ol-222424"
      }
    }

    Error codes

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

    Change history

    Change timeSummary of changesOperation
    2024-10-22The request parameters of the API has changedView Change Details
    2024-09-23The request parameters of the API has changedView Change Details
    2024-06-14The internal configuration of the API is changed, but the call is not affectedView Change Details
    2024-06-07The request parameters of the API has changedView Change Details