Translate Text

TranslateText translates a text message to another language within a session. The request must include the session identifier, text to translate, and target language tag.

HTTP Mapping: POST “/v1/conversation/inference/translate”

Request

This endpoint expects an object.
namestringRequired

name is the resource identifier of the conversation session to join. Example format: “conversations/{conversation}/sessions/{session}

textobjectRequired
InferenceText is the text to be translated.
languageTagobjectRequired
InferenceLanguage is the language to which the text should be translated.

Response

OK
textobject

/ InferenceText is the translated text.

languageTagobject
InferenceLanguage is the language of the translated text.

Errors

400
Bad Request Error