About this endpoint
What it does
Submits a text translation job using the supplied content and optional translation guidance, then returns a job identifier for tracking the asynchronous work.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| content | String | Yes | Provide the content to translate. |
| context | String | No | Provide additional context to the translated text, such as use case examples or additional explanations. |
| language | String | No | Specify the language of the content which needs to be translated. For example: German. |
| voice_tone | String | No | Specify the voice tone of the output. It can be adjectives like funny or joyous, or even the name of a famous writer. |
Response
Returns a JSON object with a job_id string and a status_url string for checking the submitted job status.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| status_url | String | Yes | URL used to check the submitted job status. Format: URI. |
| job_id | String | Yes | The job identifier returned when the translation submission is accepted. |
Notes
This endpoint kicks off an async job and returns immediately with a job identifier; the actual work runs in the background. Pair this call with the corresponding job_check endpoint — poll that until the status reaches a terminal state to retrieve the result. Extract the job identifier from job_id.