User Message Translation
Translates the latest user (subscriber) message into the target language, using the prior conversation as context.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is an access key.
Example: Authorization: Bearer sk-proj-XXXXXXXXX
Body
A conversation to translate, with its source and target languages.
Source language. See supported languages guides for full language names.
EN, EN_GB, FR, FR_BE, RO, NL, ES, DE, DE_CH, DE_AT, IT, ES_LATAM, BG, HE, JA, NL_BE, EN_AU, PT_PT, PT_BR, SV_SE, DA_DK, FI_FI, PL_PL, LT_LT, NB_NO, NN_NO, SL_SI, HU, HU_HU, CS_CZ, EL_GR, EL_GR_LATIN, EL_GR_GREEK, HR_HR, TR_TR, EN_IE, AF_ZA, ZU_ZA, LV_LV, SK_SK, GA_IE, SR_RS, ET_EE, EN_CA, FR_CA, RU_RU, UA_UA "EN"
Target language. See supported languages guides for full language names.
EN, EN_GB, FR, FR_BE, RO, NL, ES, DE, DE_CH, DE_AT, IT, ES_LATAM, BG, HE, JA, NL_BE, EN_AU, PT_PT, PT_BR, SV_SE, DA_DK, FI_FI, PL_PL, LT_LT, NB_NO, NN_NO, SL_SI, HU, HU_HU, CS_CZ, EL_GR, EL_GR_LATIN, EL_GR_GREEK, HR_HR, TR_TR, EN_IE, AF_ZA, ZU_ZA, LV_LV, SK_SK, GA_IE, SR_RS, ET_EE, EN_CA, FR_CA, RU_RU, UA_UA "FR"
The conversation messages, oldest first. The last message must be authored by the side matching the route ('user' for /user, 'persona' for /persona).
Gender of the user (subscriber). Used to apply the correct grammatical gender, agreement, and forms of address in the target language.
WOMAN, MAN "MAN"
Gender of the persona (animator). Used to apply the correct grammatical gender, agreement, and forms of address in the target language.
WOMAN, MAN "WOMAN"
Optional key/value tags attached to the request.