Parses content, such as text, tables, and images, from a document. A successful call returns a task ID. You can then call `GetDocParsingResult` to retrieve the parsing results. The `SubmitDocParsingTask` operation asynchronously submits a task for a file URL. The `SubmitDocParsingTaskAdvance` operation asynchronously submits a task for a local file.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
energy:SubmitDocParsingTask |
none |
*All Resource
|
None | None |
Request syntax
POST /api/v2/aidoc/document/submitDocParsingTask HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| fileUrl |
string |
No |
Specify either `fileUrl` or `fileUrlObject`.
Note
Parsing methods and supported document types
|
fileUrl:https://example.com/example.pdf fileUrlObject:本地文件生成的FileInputStream |
| fileName |
string |
Yes |
The file name must include the file extension. |
example.pdf |
| folderId |
string |
Yes |
|
xxxxx |
| needAnalyzeImg |
boolean |
No |
Specifies whether to parse the image content in the document. |
false |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| requestId |
string |
The request ID. |
83A5A7DD-8974-5769-952E-590A97BEA34E |
| data |
object |
The returned result. |
|
| taskId |
string |
The task ID. |
ae9d07be-1a11-4d30-be75-cc962b98279c |
Examples
Success response
JSON format
{
"requestId": "83A5A7DD-8974-5769-952E-590A97BEA34E\n",
"data": {
"taskId": "ae9d07be-1a11-4d30-be75-cc962b98279c"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.