Translate text
Translate one text between Hebrew, English, Russian and the other languages in GET /v1/languages, and attach RTL/LTR metadata (dir, mixed, lang, script, runs) to both the source and the result.
Protected translation. Add protect: true or any protection field (protected_terms, redact_terms, glossary, listener_gender, speaker_gender, domain (general, clinical, finance, legal), date_order, date_style) to keep prices, quantities, numbers, dates, codes, identifiers, product names and interface variables exactly as written. Every sentence is then checked; one that cannot be verified comes back in the source language with status: "fallback". Protection is available between Hebrew, English and Russian, and switches on automatically for these pairs when the account has account terms.
ICU messages. With message_format: "icu", text is an ICU MessageFormat message and the result is a valid ICU message in the target language, with arguments and # kept and plural branches rewritten for the target language (Hebrew one, two, other; Russian one, few, many, other).
Quota. Consumes the monthly character quota: the length of text. A request that fails upstream is not charged.
Limits. text up to 20,000 characters. Not idempotent: the same request translated twice may differ in wording, never in protected values.
Request
- Base URL: https://hc.itsbaba.com
- URL: https://hc.itsbaba.com/v1/translate
- Auth: HTTP bearer
Request body
Example request
{
"text": "Welcome to your account",
"source_lang": "auto",
"target_lang": "he",
"quality": "balanced",
"gender": "general",
"message_format": "icu",
"protect": true,
"domain": "finance",
"audience": "patient",
"protected_terms": [
"Wireless Earbuds Pro",
"A-10234"
],
"redact_terms": [
"Dana Levi"
],
"glossary": {
"Checkout": "לתשלום"
},
"listener_gender": "female",
"speaker_gender": "female",
"patient_gender": "male",
"date_order": "MDY",
"date_style": "hebrew",
"bidi": "none"
}Response
Translation result
Example response
{
"id": "txn_a1b2c3d4e5f6",
"source": {
"dir": "rtl",
"mixed": true,
"lang": "he",
"script": "Hebr",
"runs": [
{
"text": "שלום ",
"dir": "rtl",
"script": "Hebr",
"lang": "he",
"end": 5
}
],
"display_runs": [
{
"text": "שלום ",
"dir": "rtl",
"script": "Hebr",
"lang": "he",
"end": 5
}
],
"text": "Welcome to your account"
},
"translation": {
"dir": "rtl",
"mixed": true,
"lang": "he",
"script": "Hebr",
"runs": [
{
"text": "שלום ",
"dir": "rtl",
"script": "Hebr",
"lang": "he",
"end": 5
}
],
"display_runs": [
{
"text": "שלום ",
"dir": "rtl",
"script": "Hebr",
"lang": "he",
"end": 5
}
],
"text": "ברוכים הבאים לחשבון שלך",
"transliteration": "Bruchim haba'im lakheshbon shelkha",
"protection": {
"status": "ok",
"source_lang": "en",
"spans": [
{
"type": "date",
"value": "04/03/2026",
"render": "3 באפריל 2026",
"ambiguous_date": true
}
],
"issues": [
{
"code": "term_missing",
"severity": "error",
"detail": "\"A-10234\" (term) is missing or altered."
}
],
"segments": [
{
"source": "Would you like me to schedule delivery for 04/03/2026?",
"text": "האם תרצי שאקבע את המשלוח ל־3 באפריל 2026?",
"status": "ok"
}
]
}
},
"quality": "balanced",
"usage": {
"characters": 23
}
}Changes
No recorded changes to this operation across all 1 revision of this API.