Translation Task API
Query translation tasks
/v1/translation/queryQuery the status and details of a translation task.
Example
curl
1curl -X POST 'https://dltranslator.com/api/v1/translation/query' \
2--header 'Authorization: [yourSecretKey]' \
3--header 'Content-Type: application/json' \
4--data '{
5 "taskId": "[string]"
6}'
Request Parameters
Parameters | Type | Default | Description | Example |
---|---|---|---|---|
*taskId | String | - | Translation Task ID | - |
Response
Parameters | Type | Default | Description | Example |
---|---|---|---|---|
taskId | String | - | Task ID | - |
model | String | - | Translation model used | - |
fromLang | String | - | Source language | - |
toLang | String | - | Target Language | - |
status | String | - | Status: 'Waiting' | 'Processing' | 'Completed' | 'Terminated' | 'Cancelled' | - |
progress | Number | - | Progress: 0~100 | - |
errorMsg | String | - | Error message | - |
translatedFileUrl | String | - | Translation download URL | - |
translatedBilingualFileUrl | String | - |
| - |
tokenCount | Integer | - |
| - |
price | Integer | - | Total Credits required for the complete translation | - |
usedCredits | Integer | - | Number of credits used by the translation task | - |
glossary | String[] | - | Glossary name used by the translation task | - |
shouldTranslateImage | Boolean | - | Translate images in document | - |
createdAt | DateTime | - | Creation time of the translation task | - |
updatedAt | DateTime | - | Translation task update time | - |