Retrieve document parsing results. You can query the document's parsing status and obtain the parsing results.
Operation description
Prerequisites
- You have activated Alibaba Cloud Model Studio and Tongyi Gold services.
- Obtain the workspaceId: obtain the workspace identifier.
Debug
You can run this API directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After a successful call, OpenAPI Explorer can automatically generate SDK code examples.
Debug
Authorization information
The following table describes the authorization information for this API, which can be used in the Action element of a RAM policy statement to grant a RAM user or RAM role permission to call this API. For more details:
- Action: the specific permission point.
- Access level: the access level of each operation. Valid values: Write, Read, or List.
-
Resource type: the resource types supported for authorization in the operation. For more details:
- Required resource types are marked with a preceding asterisk (*).
- For operations that do not support resource-level authorization,
All resourcesis used.
- Condition key: the condition keys defined by the cloud service itself.
- Dependent operation: other permissions required to successfully perform the operation. The caller must also have the permissions of the dependent operations for the operation to succeed.
| Action | Access level | Resource type | Condition key | Dependent operation |
|---|---|---|---|---|
| dianjin:GetParseResult | none | *All resources * |
| None |
Request syntax
Request parameters
| Name | Type | Required | Description | Example value |
|---|---|---|---|---|
| workspaceId | string | Yes | Path parameter, the workspace ID. | llm-xxxxx |
| body | object | No | The request body. | |
| docId | string | Yes | The document ID. | 873648346573245 |
| libraryId | string | Yes | The document library ID. | sjdgdsfg |
| useUrlResult | boolean | No | Specifies whether to return the result as a URL. When it is true, the parsing result is returned in resultUrl, and result is empty. When it is false, the parsing result is returned in result, and resultUrl is empty. | false |
Response parameters
| Name | Type | Description | Example value |
|---|---|---|---|
| object | ResultCode | ||
| success | boolean | Indicates whether the request was successful. | true |
| dataType | string | The data type. | null |
| time | string | The timestamp. | 2024-04-24 11:54:34 |
| errCode | string | The error code. | 0 |
| message | string | The error message. | ok |
| data | object | The response data. | |
| fileType | string | The file type. | |
| providerType | string | The provider type. | null |
| requestId | string | The request ID. | b0a202e2-5031-4589-a6d7-39185f0d8d01 |
| result | object | The parsing result. | { "Status": "Success", "Data": {}, "Message": null, "TaskId": "docmind-20240601-123abc" } |
| status | string | The document parsing status. | WaitRefresh |
| resultUrl | string | The parsing result returned as a URL, which can be downloaded directly. Note: only pdf, doc, docx, ppt, and pptx file types have parsing results. | https://xxx.oss-cn-beijing.aliyuncs.com/library/3mjeoywx7z/1826661605606129665.json |
| requestId | string | The request ID. | 0abb793617204049360065953ec6dd |
| cost | long | The time consumed. | null |
Examples
Success response
JSON format