Skip to main content
GET
cURL

Overview

The /v2/org-languages endpoint returns the full language configuration for an organisation. Use it to discover which languages are available before making localised content requests (e.g. passing lang to guide-search or listing-search). When translationEnabled is false, only the default language is available and the languages array will be empty.

Request

Required parameters

Optional parameters

Destination-scoped languages

An organisation can configure target languages per destination rather than one list for the whole organisation — see Translations. Pass hostId when your integration operates in the context of a single destination, so a language switcher offers only the languages that destination is actually translated into.
An unrecognised hostId falls back to the organisation-wide list rather than returning an empty one. An empty list is indistinguishable from a mistyped parameter, and would render a language switcher with nothing in it.
Omitting hostId is always safe: existing integrations keep receiving the organisation-wide list exactly as before.

Examples

Retrieve supported languages

Retrieve supported languages

Retrieve languages for one destination

Retrieve languages for one destination

Example response — translations enabled

Example response (translations enabled)

Example response — translations disabled

Example response (translations disabled)

Response fields

Top-level

Language object

Authorizations

key
string
query
required

Path Parameters

orgId
string
required

Organization Account Number

Query Parameters

hostId
string

Unique host identifier

Response

Success

translationEnabled
boolean
required
defaultLanguage
object
required
languages
object[]
required