# Translate a registered job

Starts translation for a reusable registered job. Video/audio files use the media translation workflow; NG media translation transcribes the source first when needed. Document files use the document translation workflow.

URL: /reference/job-workflows/translateJob

## POST /v2/jobs/{job_id}/translations

```json
{
  "openapi": "3.2.0",
  "info": {
    "title": "Translate a registered job",
    "description": "Lingopal v2 public API for text translation, storage uploads, registered jobs, job workflows, and job outputs.",
    "version": "v2"
  },
  "servers": [
    {
      "url": "https://vod-api.lingopal-dev.com"
    }
  ],
  "security": [
    {
      "APIKeyHeader": []
    }
  ],
  "paths": {
    "/v2/jobs/{job_id}/translations": {
      "post": {
        "tags": [
          "Job Workflows"
        ],
        "summary": "Translate a registered job",
        "description": "Starts translation for a reusable registered job. Video/audio files use the media translation workflow; NG media translation transcribes the source first when needed. Document files use the document translation workflow.",
        "operationId": "translateJob",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "job_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Reusable registered job ID returned by `/v2/jobs/register` or `/v2/jobs/upload-and-register`.",
              "examples": [
                "job_123"
              ],
              "title": "Job Id"
            },
            "description": "Reusable registered job ID returned by `/v2/jobs/register` or `/v2/jobs/upload-and-register`."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TranslateJobRequest"
              },
              "examples": {
                "translateJobMinimal": {
                  "summary": "Translate registered job minimal",
                  "description": "Start translation for a registered media or document job with required target languages.",
                  "value": {
                    "target_languages": [
                      "es",
                      "fr"
                    ]
                  }
                },
                "translateJobNg": {
                  "summary": "Translate with the NG pipeline",
                  "description": "Transcribe the source when needed, then translate it to the requested languages.",
                  "value": {
                    "target_languages": [
                      "es",
                      "fr"
                    ],
                    "pipeline": "ng",
                    "context": "Customer-facing product launch video"
                  }
                },
                "translateJobWithOptions": {
                  "summary": "Translate registered job with options",
                  "description": "Start job translation with context and media-processing options.",
                  "value": {
                    "target_languages": [
                      "es",
                      "fr"
                    ],
                    "context": "Customer-facing product launch video",
                    "reset": true,
                    "remove_background_audio": false,
                    "number_of_speakers": 2,
                    "burn_subtitles_on_source": false,
                    "prepend_ai_warning": true,
                    "enhance": false,
                    "experimental_force_accent": false
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Started job translation workflow.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationJobResponse"
                },
                "example": {
                  "workflow": "translate_media",
                  "status": "started",
                  "job_id": "job_123",
                  "target_languages": [
                    "es",
                    "fr"
                  ],
                  "message": "Translation workflow started",
                  "links": {
                    "job": "/v2/jobs/job_123",
                    "status": "/v2/jobs/job_123/status"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication token."
          },
          "422": {
            "description": "Request validation error."
          }
        }
      }
    }
  },
  "tags": [
    {
      "name": "Job Workflows",
      "description": "Start translation and subtitle workflows for registered jobs."
    }
  ],
  "components": {
    "schemas": {
      "TranslateJobRequest": {
        "properties": {
          "target_languages": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "minItems": 1,
            "title": "Target Languages",
            "description": "Target locale codes. Alias accepted: `languages`. The job type determines whether media or document translation is started.",
            "examples": [
              [
                "es",
                "fr"
              ]
            ]
          },
          "context": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Context",
            "description": "Optional context supplied to media or document translation."
          },
          "reset": {
            "type": "boolean",
            "title": "Reset",
            "description": "Whether to prune stale target languages; active workflow progress is always refreshed for a new run.",
            "default": true
          },
          "remove_background_audio": {
            "type": "boolean",
            "title": "Remove Background Audio",
            "description": "Whether to remove background audio for media translation.",
            "default": false
          },
          "number_of_speakers": {
            "type": "integer",
            "minimum": 0,
            "title": "Number Of Speakers",
            "description": "Optional speaker count hint; use 0 to auto-detect.",
            "default": 0
          },
          "burn_subtitles_on_source": {
            "type": "boolean",
            "title": "Burn Subtitles On Source",
            "description": "Whether to burn generated subtitles onto source-language media.",
            "default": false
          },
          "prepend_ai_warning": {
            "type": "boolean",
            "title": "Prepend Ai Warning",
            "description": "Whether to prepend an AI-generated-content warning.",
            "default": false
          },
          "enhance": {
            "type": "boolean",
            "title": "Enhance",
            "description": "Whether to enable media enhancement when supported.",
            "default": false
          },
          "experimental_force_accent": {
            "type": "boolean",
            "title": "Experimental Force Accent",
            "description": "Whether to force accent handling for experimental workflows.",
            "default": false
          },
          "pipeline": {
            "type": "string",
            "enum": [
              "default",
              "ng"
            ],
            "title": "Pipeline",
            "default": "default"
          },
          "source_srt_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Srt Url"
          },
          "target_srt_urls": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Target Srt Urls"
          },
          "clone_voice": {
            "type": "boolean",
            "title": "Clone Voice",
            "default": false
          },
          "word_count_per_line": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "title": "Word Count Per Line",
            "default": 7
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "target_languages"
        ],
        "title": "TranslateJobRequest",
        "examples": [
          {
            "burn_subtitles_on_source": false,
            "context": "Customer-facing product launch video",
            "enhance": false,
            "experimental_force_accent": false,
            "number_of_speakers": 2,
            "prepend_ai_warning": true,
            "remove_background_audio": false,
            "reset": true,
            "target_languages": [
              "es",
              "fr"
            ]
          }
        ]
      },
      "TranslationJobResponse": {
        "properties": {
          "workflow": {
            "type": "string",
            "enum": [
              "translate_media",
              "translate_text",
              "translate_document",
              "translate_subtitles",
              "transcribe_media",
              "republish_media"
            ],
            "title": "Workflow",
            "description": "Translation workflow that was started."
          },
          "status": {
            "type": "string",
            "enum": [
              "queued",
              "started",
              "completed",
              "error"
            ],
            "title": "Status",
            "description": "Current workflow status."
          },
          "job_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Job Id",
            "description": "Reusable registered job ID associated with this workflow."
          },
          "target_languages": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Target Languages",
            "description": "Target locale codes requested for this workflow."
          },
          "format": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Format",
            "description": "Requested output format when applicable."
          },
          "message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Message",
            "description": "Human-readable status message."
          },
          "links": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object",
            "title": "Links",
            "description": "Related API links."
          }
        },
        "type": "object",
        "required": [
          "workflow",
          "status"
        ],
        "title": "TranslationJobResponse",
        "examples": [
          {
            "job_id": "job_123",
            "links": {
              "job": "/v2/jobs/job_123",
              "status": "/v2/jobs/job_123/status"
            },
            "message": "Translation workflow started",
            "status": "started",
            "target_languages": [
              "es",
              "fr"
            ],
            "workflow": "translate_media"
          }
        ]
      }
    },
    "securitySchemes": {
      "APIKeyHeader": {
        "in": "header",
        "name": "X-API-Key",
        "type": "apiKey"
      }
    }
  }
}
```
