Skip to content

Returns the locale setting for the current session.

GET
/api/locale

Authorizations

api_key
Type: API Key (header: X-CSRF-Token)

Responses

Authorization
api_key
cURL
curl -X GET \
'http://localhost/api/locale'

Samples

cURL
curl -X GET http://localhost/api/locale
JavaScript
fetch("http://localhost/api/locale")
  .then(response => response.json())
  .then(data => console.log(data));
PHP
file_get_contents("http://localhost/api/locale");
Python
import requests
response = requests.get("http://localhost/api/locale")
print(response.json())