Create translation requests
Create one or more translation requests for an asset using a custom translation integration. One translation request is created per code supplied in language_codes, and newly created requests start with a status of requested.
The integration_id must reference a custom_translation integration that belongs to your company. Every code in language_codes must be one of your company's supported translation languages — call GET /translation-languages first to retrieve the valid set.
NOTE: Only custom_translation integrations are supported by this endpoint. Integrations for marketing platforms or other translation providers (Smartling, TransPerfect, Lazarus) are rejected with 422 Unprocessable Entity. Steps to set up a custom translation integration can be found here.
Request
- Base URLhttps://enterprise.knak.io/api/published/v1
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"integration_id": "609ca344d1caa",
"asset_id": "609ca344d1b1b",
"language_codes": [
"fr-CA",
"es-ES"
],
"notes": "Please prioritize this campaign",
"due_date": "2026-07-01"
}Response
Created. Returns the translation requests that were created, one per language code.
Example response
{
"data": [
{
"type": "translation-request",
"id": "609d7ce223411",
"attributes": {
"id": "609d7ce223411",
"language_code": "zh-CN",
"source_language_code": "en-US",
"status": "processing",
"base_asset_id": "609ca344d1b1b",
"asset_version_id": "67d19607cbb1d4.78284760",
"integration_id": "609ca344d1caa",
"user": {
"id": "609d7ce223411",
"name": "John Doe",
"email": "john.doe@email.com",
"roles": [
"Email Creator",
"Collaborator"
]
},
"notes": "Need a translation for this asset soon",
"due_date": "2023-02-08",
"created_at": "2023-02-08T17:07:12+00:00",
"updated_at": "2023-02-08T17:07:12+00:00"
}
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.