User Tools

Site Tools


api:flexcare:dialog:languages:get

API : FlexCare : Dialog : Languages : Get

Introduction

This endpoint is used to retrieve information about a single language

Request

URL https://api.telecomx.dk/flexcare/dialog/language/LANGUAGE_ID
Method GET
Access level RESELLER_ADMIN, ADMIN
Params LANGUAGE_ID Unique id of the language to retrieve

Query example

https://api.telecomx.dk/flexcare/dialog/language/1234567890qwertyuiopqwer

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
keyboardConfigString String Configuration for the keyboard layout
totalProfiles Number Amount of DialogProfiles where language is used

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)',
    keyboardConfigString: '{
        numbers: ["1", "2", "3", "4", "5", "6", "7", "8", "9", "0"],
        rows: [
            ["a", "z", "e", "r", "t", "y", "u", "i", "o", "p"],
            ["q", "s", "d", "f", "g", "h", "j", "k", "l", "m"],
            ["w", "x", "c", "v", "b", "n", "è", "é", "à", "ç"],
        ],
    }',
    totalProfiles: 3
}

Errors

Error code Message Description
403 access_denied Insufficient access level
404 not_found Language not found
500 internal_error <Unspecified>
api/flexcare/dialog/languages/get.txt · Last modified: 2025/08/12 08:55 by Mikkel Frederiksen

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki