{"_id":"5845a4aa9f6fbb1b00430836","__v":0,"version":{"_id":"5845a4a89f6fbb1b004307b7","project":"54d3007669578e0d002730c9","__v":2,"createdAt":"2016-12-05T17:32:24.708Z","releaseDate":"2016-12-05T17:32:24.708Z","categories":["5845a4a89f6fbb1b004307b8","5845a4a89f6fbb1b004307b9","5845a4a89f6fbb1b004307ba","5845a4a89f6fbb1b004307bb","5845a4a89f6fbb1b004307bc","5845a4a89f6fbb1b004307bd","5845a4a89f6fbb1b004307be","5845a4a89f6fbb1b004307bf","5845a4a89f6fbb1b004307c0","592deb23644f060f008e5aa6"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"25.0.0","version":"25"},"category":{"_id":"5845a4a89f6fbb1b004307be","project":"54d3007669578e0d002730c9","__v":0,"version":"5845a4a89f6fbb1b004307b7","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-07-30T07:08:52.789Z","from_sync":false,"order":6,"slug":"domains","title":"Domains (Deprecated)"},"project":"54d3007669578e0d002730c9","parentDoc":null,"user":"55bf6cdcad601c2b00762d13","updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-08-09T02:42:08.054Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":true,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":29,"body":"[block:callout]\n{\n  \"type\": \"warning\",\n  \"title\": \"Domains are being deprecated\",\n  \"body\": \"Domains are being deprecated. If you're currently using domains, please consider using our new [Prebuilt Agents](https://docs.api.ai/docs/prebuilt-agents).\"\n}\n[/block]\n\n[block:callout]\n{\n  \"type\": \"info\",\n  \"body\": \"This domain is supported in the following languages:\\n* English\\n* French\\n* Italian\\n* Japanese\\n* Portuguese\\n* Russian\\n* Spanish\"\n}\n[/block]\n## Action\n\nName| Description  \n---|---  \ntranslate.text| Requests to translate texts  \n  \n## Data\n\nName| Parent| Data type| Required / Optional| Description| Request examples\n---|---|---|---|---|---\ntext| _data_| string| optional| Defines the text to translate.| Translate \"hello\". (text=hello)\nfrom| _data_| object| optional| Defines the source language.  |\nlang| _from_| string| required| Language name.| Translate \"привет\" from Russian. (lang=Russian)  \nlangCode| _from_| string| optional| Language two-letter code.| Translate \"привет\" from Russian. (langCode=ru)  \nto| _data_| object| optional| Defines the target language.  |\nlang| _to_| string| required| Language name.| Translate \"привет\" to English. (lang=English)  \nlangCode| _to_| string| optional| Language two-letter code.| Translate \"привет\" to English. (langCode=en)\n\n**Note**: Language names and two-letter codes are in ISO 639-1 format.","excerpt":"","slug":"translate","type":"basic","title":"Translate"}
[block:callout] { "type": "warning", "title": "Domains are being deprecated", "body": "Domains are being deprecated. If you're currently using domains, please consider using our new [Prebuilt Agents](https://docs.api.ai/docs/prebuilt-agents)." } [/block] [block:callout] { "type": "info", "body": "This domain is supported in the following languages:\n* English\n* French\n* Italian\n* Japanese\n* Portuguese\n* Russian\n* Spanish" } [/block] ## Action Name| Description ---|--- translate.text| Requests to translate texts ## Data Name| Parent| Data type| Required / Optional| Description| Request examples ---|---|---|---|---|--- text| _data_| string| optional| Defines the text to translate.| Translate "hello". (text=hello) from| _data_| object| optional| Defines the source language. | lang| _from_| string| required| Language name.| Translate "привет" from Russian. (lang=Russian) langCode| _from_| string| optional| Language two-letter code.| Translate "привет" from Russian. (langCode=ru) to| _data_| object| optional| Defines the target language. | lang| _to_| string| required| Language name.| Translate "привет" to English. (lang=English) langCode| _to_| string| optional| Language two-letter code.| Translate "привет" to English. (langCode=en) **Note**: Language names and two-letter codes are in ISO 639-1 format.