- Print
- PDF
Check document translation status
- Print
- PDF
Available in Classic and VPC
Check the progress of a document translation with the current processing stage and progress (%).
Request
This section describes the request format. The method and URI are as follows:
Method | URI |
---|---|
GET | /status |
Request headers
For information about the headers common to all Papago Translation APIs, see Common Papago Translation headers.
Request query parameters
The following describes the parameters.
Field | Type | Required | Description |
---|---|---|---|
requestId | String | Required | ID issued with the translation request (Request ID)
|
Request example
The request example is as follows:
curl --location --request GET 'https://naveropenapi.apigw.ntruss.com/doc-trans/v1/status
?requestId={requestId}' \
--header 'X-NCP-APIGW-API-KEY-ID: {Client ID issued when registering the app}' \
--header 'X-NCP-APIGW-API-KEY: {Client secret issued when registering the app}'
Response
This section describes the response format.
Response body
The response body includes the following data:
Field | Type | Required | Description |
---|---|---|---|
data | Object | - | Progress details |
data.status | String | - | Current translation progress stage
|
data.progressPercent | Integer | - | File translation progress (%)
|
data.errCode | String | - | Error code
|
data.errMsg | String | - | Error message
|
Response status codes
For information about the HTTP status codes common to all Papago Translation APIs, see Common Papago Translation response status codes.
Response example
The response example is as follows:
Success
The following is a sample response upon a successful call.
{
"data": {
"status": "COMPLETE"
}
}
{
"data": {
"status": "PROGRESS",
"progressPercent": 24
}
}
Failure
The following is a sample response upon a failed call.
{
"data": {
"status": "FAILED",
"errCode": "17",
"errMsg": "Detected langcode is the same as target langcode"
}
}