Payloads¶
Most of the processing throughout the Translate API will be around a Job Payload. This is a simple container representing the instance of a translation job.
Job Payload - for responses¶
Parameter |
Required |
Type |
Description |
---|---|---|---|
|
YES |
Integer |
Job ID |
|
YES |
Integer |
Order ID |
|
YES |
String |
Original body of text (to be translated). |
|
YES |
String |
Translated body of text (if available). |
|
YES |
String |
Source language code. Gengo uses IETF codes to define languages and language pairs. |
|
YES |
String |
Target language code. |
|
YES |
Integer |
Count of source language units (either words or characters depending on source language) |
|
YES |
String |
Quality level (“standard” or “pro”) |
|
YES |
Float |
Credit price based on language pair and tier. |
|
YES |
String |
Current status of job. Either “available”, “pending”, “reviewable”, “revising”, “approved”, or “cancelled”. |
|
YES |
Integer |
Estimated seconds until completion. |
|
YES |
String |
The full URL to which we will send system updates (completed jobs, new comments, etc.). |
|
YES |
Bool(1/0) |
Of whether the job will be automatically approved after translation has completed. |
|
YES |
String |
Unix Timestamp for when this job was submitted (by you - not by the translator). |
|
YES |
String |
Up to 1K of client-specific data that may have been sent when the job was submitted. |
|
String |
The full URL of source file (returned with the callback). |
|
|
String |
The full URL of translated file (returned with the callback). |
Job Payload - for submissions¶
Parameter |
Required |
Type |
Description |
||
---|---|---|---|---|---|
|
YES |
String |
Original body of text (to be translated) |
||
|
YES |
String |
Source language code. Gengo uses IETF codes to define languages and language pairs |
||
|
YES |
String |
Target language code |
||
|
YES |
String |
Quality level (“standard” or “pro”) |
||
|
YES |
String |
Job type. Either ‘text’ (default) or ‘file’. Use ‘file’ for ordering file jobs via the API using job identifiers from the file quote function |
||
|
YES |
String |
Job title. For internally storing, can be generic |
||
|
if |
String |
The identifier returned as a response from the file quote method (e.g. identifier = ‘2ea3a2dbea3be97375ceaf03200fb184’) |
||
|
Integer |
Id of the glossary that you want to use |
|||
|
Integer |
The position of the job in a group of jobs. Starts at 1. When the job group is displayed to translators, this ensures that ordering is maintained. |
|||
|
Bool(1/0) |
Whether or not to override duplicate detection and force a new translation. (always returns a fresh translation, even if the term has been translated before) Caution: Setting the “force” flag to 1 indicates the possibility of incurring duplicate costs. |
|||
|
String |
Instructions or comments for translator to consider when translating. It is strongly encouraged to provide a detailed comment for the translator |
|||
|
Array |
Contains Dictionaries. Each attachment must have a separate Dictionary containing the following required parameters |
|||
Parameter |
Type |
Description |
|||
|
String |
Link to an external file providing extra context to a job. Only accepts public URLs with http(s) scheme. |
|||
|
String |
The name of the external file to be attached ex| ‘image.jpg’/’video.mp4’/’audio.mpeg’/… |
|||
|
String |
The following mime types will display a preview to the translator: image/bmp|jpg|jpeg|png|gif, video/mp4, audio/mpeg. Other mime types will display a download link to the translator. |
|||
|
Array |
Plus service. To place a translation order with extra quality assurance ex| ‘services’: [‘translation’, ‘edit’] |
|||
|
String |
Describing the purpose of the translation ex| “Personal use/Business/Online content/Web or app localization/Other… |
|||
|
String |
Describing the tone for the translation ex| “Informal/Friendly/Business/Formal/Other… |
|||
|
Bool(1/0) |
Whether to use translators from the preferred translators list associated with the account |
|||
|
String |
The full URL to which we will send system updates (completed jobs, new comments, etc.) |
|||
|
Bool(1/0) |
Whether to automatically approve jobs after they’ve been translated. Default is false If false, completed jobs will await review and approval by customer for 72 hours |
|||
|
String |
Up to 1K of storage for client-specific data that may be helpful for you to have mapped to this job |
|||
|
Integer |
Expresses character limit of translation. Should always be greater than 0 |
|||
|
Bool(1/0) |
By default, jobs from the same language pair and tier will be grouped within a single collection which means that only one translator for
this language pair and tier will be able to pick up the whole collection.
If |