Get document translation job info
Get information about a document translation job.
This endpoint can be used to poll for the status of a document
translation job.
The jobId is obtained from a successful call to the
/v2/documents/translate
endpoint.
The response contains information about the job, including its status.
The possible statuses are:
CREATED: The translation job is in the queue.
IN_PROGRESS: The translation is being processed.
SUCCESS: The translation was successful.
FAILED: The translation failed.
If the status is SUCCESS, the translated document can be downloaded
using the
/v2/documents/{jobId}/download
endpoint.
If the status is FAILED, the reason, errorCode and errorData
fields in the response will contain details about the failure.
- The information and document is only available for 1 hour, after that it is deleted.
- In case you don't download the translated document within that time, you will need to send another translation request.
| Path Parameters |
|---|
jobId uuid — REQUIRED |
| Responses |
|---|
| Schema — OPTIONAL |
|---|
jobId uuidThe ID of the document translation job. | source BCP-47Possible values: 2 ≤ length ≤ 25 The source language of the translation. | target BCP-47Possible values: 2 ≤ length ≤ 25 The target language of the translation. | successCallbackUrl Success callback URLThe URL that will be called upon successful translation. Will be null if not provided when the translation was started. | errorCallbackUrl Error callback URLThe URL that will be called if the translation fails. Will be null if not provided when the translation was started. | translationId Translation IDThe custom ID provided when the translation was started. Will be null if not provided when the translation was started. | status Document translation statusPossible values: [CREATED, IN_PROGRESS, SUCCESS, FAILED] Enum for describing the state of a document translation job. | reason ReasonA human-readable reason for the failure, if the job failed. Will be null otherwise. | errorCode Error codeA machine-readable error code, if the job failed. Will be null otherwise. Possible values are described in the DocumentTranslationErrorCode enum. More values may be added in the future, so we recommend using a flexible schema (e.g. a string) for this field. | errorDataAdditional data about the error, if the job failed. Will be null otherwise. |
|
401
The access token provided is missing, expired, revoked, malformed, or invalid for other reasons. The client MAY request a new access token and retry the protected resource request. | Schema — OPTIONAL |
|---|
detail DetailA generic JSON value, typically a string describing the error. |
|
403
The request requires higher privileges than provided by the access token. The request should not be retried. | Schema — OPTIONAL |
|---|
detail DetailA generic JSON value, typically a string describing the error. |
|
404
Document translation not found | Schema — OPTIONAL |
|---|
detail DetailThe provided job ID does not exist |
|
| Schema — OPTIONAL |
|---|
detail object[] — OPTIONALloc undefined[] | msg Message | type Error Type |
|
|
429
Too many requests in the time interval | Schema — OPTIONAL |
|---|
detail DetailA generic JSON value, typically a string describing the error. |
|
| Schema — OPTIONAL |
|---|
detail DetailA generic JSON value, typically a string describing the error. |
|