EN IT

Locales

Endpoints for retrieving workspace locale configurations.

Base URL: https://api.contit.cloud

GET /locales

Get all locales

Retrieve all configured locales for the workspace, including fallback chains and the default locale.

Requires ReadAccess policy

Responses

200 Success
(array) LocaleModel[] Array of locale configurations
401 Unauthorized

Code examples

curl -X GET "https://api.contit.cloud/locales" \
  -H "X-Api-Key: YOUR_API_KEY"
var client = new ContitClient(
    new ClientContitConfiguration(clientId, clientSecret));

var locales = await client.Locale.GetAll();
const response = await fetch(
  "https://api.contit.cloud/locales",
  {
    method: "GET",
    headers: {
      "X-Api-Key": "YOUR_API_KEY",
    }
  }
);

const data = await response.json();
import requests

headers = {"X-Api-Key": "YOUR_API_KEY"}

response = requests.get(
    "https://api.contit.cloud/locales",
    headers=headers
)

data = response.json()
Example Response 200
[
  {
    "code": "en",
    "name": "English",
    "fallbackCode": null,
    "default": true
  },
  {
    "code": "it",
    "name": "Italiano",
    "fallbackCode": "en",
    "default": false
  },
  {
    "code": "de",
    "name": "Deutsch",
    "fallbackCode": "en",
    "default": false
  }
]
Try it Live