Skip to main content
POST
Upload Document

Description

Uploads a document to the Translation Service.
  • Either file or source_url must be provided (not both); otherwise the API returns 400.
  • languages is required: a comma-separated list of locales validated against text-capable languages (same validation as other text translation flows).
  • context_for_translation is optional; empty string if omitted.
  • name is optional; the filename stem is used when uploading a file without name.

Authorizations

X-API-Key
string
header
required

Body

multipart/form-data
context_for_translation
string | null
default:""
file
file | null
source_url
string | null
name
string | null
languages
string
default:""

Response

Successful Response