Skip to main content
GET
/
api
/
v1
/
projects
/
{id}
/
locales
Countries and languages used by a project’s queries
curl --request GET \
  --url https://api.mentionlab.io/api/v1/projects/{id}/locales \
  --header 'x-project-id: <x-project-id>'
{
  "countries": [
    "US",
    "FR",
    "DE"
  ],
  "languages": [
    "en",
    "fr",
    "de"
  ]
}

Headers

x-project-id
string
required

Project ID to specify the project context

Path Parameters

id
string<uuid>
required

UUID of the project whose used locales are requested. Must match the x-project-id header.

Response

countries
string[]
required

Unique country codes (ISO 3166-1 alpha-2, from the supported allowlist) used by queries in this project.

Example:
["US", "FR", "DE"]
languages
string[]
required

Unique language codes (BCP-47-style, from the supported allowlist) used by queries in this project.

Example:
["en", "fr", "de"]