The translation endpoints let you translate text using AI (powered by Meta’s M2M-100 model via Workers AI). Translations are cached to avoid redundant processing.Documentation Index
Fetch the complete documentation index at: https://docs.credentialsportal.com/llms.txt
Use this file to discover all available pages before exploring further.
Translate text
A single string to translate. Use
texts instead for batch mode.An array of strings to translate. Maximum 200 strings per request. Use this for batch mode instead of
text.BCP 47 language code of the target language (e.g.,
"es", "fr", "pt")BCP 47 language code of the source language. Defaults to
"en" if omitted.List supported languages
[englishName, nativeName]. 70+ languages are supported.
Translation in messages
Message translation happens automatically — when a user reads a conversation, each message is translated into their language on the fly. You don’t need to call the translation endpoint yourself for messaging. ThePOST /api/translate endpoint is useful for translating other content — such as custom field values, course names, or external data you’re importing.