Skip to main content

Get Languages

Used to fetch all languages configured for a project. This API returns a list of languages associated with the provided projectKey.

API Endpoint

PropertyValue
Request MethodGET
Request URLhttps://api.seliseblocks.com/uilm/v1/Language/Gets

Request

Request Example

curl -X GET 'https://api.seliseblocks.com/uilm/v1/Language/Gets?ProjectKey=YOUR_PROJECT_KEY' \
-H 'accept: text/plain' \
-H "x-blocks-key": YOUR_PROJECT_KEY

Request Headers

FieldTypeDescription
Content-Typeapplication/jsonData type, must be application/json.

Query Parameters

FieldTypeRequiredDescription
ProjectKeystringYesThe x-blocks key for your project, available in the Environment Overview page.
note

If the x-blocks-key header is not included, the API will return a 200 OK response, but the data returned will not be specific to your project.

Response

Success Response

Returns an array of language objects with HTTP status 200 OK.

[
{
"itemId": "b174cab5-bc17-48e3-8411-d58f0c530d32",
"languageName": "English",
"languageCode": "en-US",
"isDefault": true,
"projectKey": null
},
{
"itemId": "578b5101-a0fb-4f9b-817d-2fe38eec0a06",
"languageName": "German",
"languageCode": "de-DE",
"isDefault": false,
"projectKey": null
},
{
"itemId": "4a50e9bb-5703-4a67-af95-e89bcbed6464",
"languageName": "Bengali",
"languageCode": "bn-BD",
"isDefault": false,
"projectKey": null
}
]

Response Fields

FieldTypeDescription
itemIdstringUnique language record identifier.
languageNamestringThe readable name of the language.
languageCodestringThe language code (e.g., en, bn, fr).
isDefaultbooleanWhether this language is the default one.
projectKeystringThe project key associated with the language.