GET
/
locales
Get Locales
curl --request GET \
  --url https://api.neobrain.io/{version}/locales \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": "fr",
    "name": "Français",
    "default": 1
  }
]

Authorizations

Authorization
string
header
required

API token for the Authorization header parameter.

Headers

Accept-Language
string

Language identifier, using the ISO 639-1 specification. If none provided it will use the account default language. For additional info please access /v1/locales

Response

Success

id
string

Language identifier, using the ISO 639-1 specification

Example:

"fr"

name
string

Human readable value

Example:

"Français"

default
boolean

Specify if the language is the default one

Example:

1