api:flexcare:dialog:languages:create
Table of Contents
API : FlexCare : Dialog : Languages : Create
Introduction
This endpoint is used to create a new language
Request
| URL | https://api.telecomx.dk/flexcare/dialog/language | ||
|---|---|---|---|
| Method | POST | ||
| Access level | RESELLER_ADMIN, ADMIN | ||
| Body | name | String | Name of language in English |
| nativeName | String | Native name of the language | |
| code | String<ISO 639-1> | Language code | |
| country | String<ISO 3166> | Code of the country | |
| keyboardCountry | String<ISO 3166> | Country to use for keyboard | |
| keyboardLang | String<ISO 639-1> | Language to use for keyboard | |
| model | String | AI Model to use for TTS, STT and Translation | |
| speak | String<ISO 639-1> | Code of language to speak in | |
| translation | String<'ollama', 'nllb'> | Which engine should be used | |
| verify | Boolean | If true the model will double check whether translation is correct Only on supported models Default: false |
|
| voice | String | Voice to use for TTS | |
| keyboardConfigString | String | Keyboard layout configuration | |
Query example
https://api.telecomx.dk/flexcare/dialog/language
Response
| DialogLanguage - JSON Object | ||
|---|---|---|
| _id | ObjectId | Unique id of the language |
| name | String | Name of language in English |
| nativeName | String | Native name of the language |
| code | String<ISO 639-1> | Language code |
| country | String<ISO 3166> | Code of the country |
| keyboardCountry | String<ISO 3166> | Country to use for keyboard |
| keyboardLang | String<ISO 639-1> | Language to use for keyboard |
| model | String | AI Model to use for TTS, STT and Translation |
| speak | String<ISO 639-1> | Code of language to speak in |
| translation | String<'ollama', 'nllb'> | Which engine should be used |
| verify | Boolean | If true the model will double check whether translation is correct Only on supported models |
| voice | String | Voice to use for TTS |
Example
{ _id: '1234567890qwertyuiopqwer', name: 'Danish', nativeName: 'Dansk', code: 'da', country: 'DK', keyboardCountry: 'DK', keyboardLang: 'da', model: 'gemma3:27b', speak: 'da', translation: 'ollama', verify: false, voice: 'Jonas (Calm)' }
Errors
| Error code | Message | Description |
|---|---|---|
| 403 | access_denied | Insufficient access level |
| 500 | internal_error | <Unspecified> |
api/flexcare/dialog/languages/create.txt · Last modified: 2025/07/14 10:04 by Mikkel Frederiksen