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
disclaimer String Disclaimer for the language

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
disclaimer String Disclaimer for the language

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)',
    disclaimer: ''
}

Errors

Error code Message Description
403 access_denied Insufficient access level
500 internal_error <Unspecified>