Gets the results of a document translation task from Tongyi Multimodal Translation.
Operation description
Gets the results of a document translation task.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
anytrans:GetDocTranslateTask |
none |
*All Resource
|
None | None |
Request syntax
POST /anytrans/translate/doc/get HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| workspaceId |
string |
Yes |
The ID of the Model Studio workspace. |
llm-kqtrcpdee4xm29xx |
| taskId |
string |
Yes |
The document translation task ID. |
d3a2397bc2c14ab4a2e40a4f5b46241b |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| code |
string |
The response status code. |
success |
| message |
string |
The response message. |
success |
| requestId |
string |
The unique identifier for the request. |
AC642EEB-C29D-54DF-8F52-622565BBB78A |
| success |
boolean |
Indicates whether the API call was successful. |
true |
| httpStatusCode |
string |
The HTTP response code. |
200 |
| data |
object |
The response data. |
|
| taskId |
string |
The document translation task ID. |
d3a2397bc2c14ab4a2e40a4f5b46241b |
| status |
string |
The translation status. Valid values: Valid values:
|
translated |
| charactersCount |
integer |
The character count. |
4 |
| pageCount |
integer |
The page count. |
2 |
| translateFileUrl |
string |
The translation result URL. |
http://translate-ai-data-dev.oss-cn-hangzhou.aliyuncs.com/tongyiTranslate/123456789/a7630164ce894c799cca0f0822c36f84_merge.md |
Examples
Success response
JSON format
{
"code": "success",
"message": "success",
"requestId": "AC642EEB-C29D-54DF-8F52-622565BBB78A",
"success": true,
"httpStatusCode": "200",
"data": {
"taskId": "d3a2397bc2c14ab4a2e40a4f5b46241b",
"status": "translated",
"charactersCount": 4,
"pageCount": 2,
"translateFileUrl": "http://translate-ai-data-dev.oss-cn-hangzhou.aliyuncs.com/tongyiTranslate/123456789/a7630164ce894c799cca0f0822c36f84_merge.md"
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IdempotentParameterMismatch | The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.