> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mentionlab.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Countries and languages of a project’s locales

> Distinct countries/languages for the project. `source=runs` (default) = locales from real executions; `source=config` = the configured queries allowlist (may include never-run locales).



## OpenAPI

````yaml https://api.mentionlab.io/api/docs-json get /api/v1/projects/{id}/locales
openapi: 3.0.0
info:
  title: MentionLab Public API v0.3.4-rc
  description: ''
  version: 0.3.4-rc
  contact: {}
servers:
  - url: https://api.mentionlab.io
security: []
tags: []
paths:
  /api/v1/projects/{id}/locales:
    get:
      tags:
        - Projects
      summary: Countries and languages of a project’s locales
      description: >-
        Distinct countries/languages for the project. `source=runs` (default) =
        locales from real executions; `source=config` = the configured queries
        allowlist (may include never-run locales).
      operationId: ProjectLocalesV1Controller_getLocales_v1
      parameters:
        - name: id
          required: true
          in: path
          description: >-
            UUID of the project whose used locales are requested. Must match the
            x-project-id header.
          schema:
            type: string
            format: uuid
        - name: source
          required: false
          in: query
          description: >-
            Which locales to return: 'runs' (default) for locales from real
            executions, or 'config' for the configured queries allowlist.
          schema:
            $ref: '#/components/schemas/LocaleSource'
        - name: x-project-id
          in: header
          description: Project ID to specify the project context
          required: true
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QueryLocalesResponse'
        '400':
          description: >-
            The request failed validation — the body, query or path parameters
            are malformed or out of range.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '401':
          description: The request is missing valid authentication credentials.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '403':
          description: >-
            The authenticated principal lacks the required permission, or access
            to the requested organisation/project.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
components:
  schemas:
    LocaleSource:
      type: string
      enum:
        - runs
        - config
    QueryLocalesResponse:
      type: object
      properties:
        countries:
          description: >-
            Unique country codes (ISO 3166-1 alpha-2, from the supported
            allowlist) used by queries in this project.
          example:
            - US
            - FR
            - DE
          type: array
          items:
            type: string
        languages:
          description: >-
            Unique language codes (BCP-47-style, from the supported allowlist)
            used by queries in this project.
          example:
            - en
            - fr
            - de
          type: array
          items:
            type: string
      required:
        - countries
        - languages
    ApiErrorResponse:
      type: object
      properties:
        statusCode:
          type: number
          description: HTTP status code of the error.
          example: 400
        message:
          type: string
          description: >-
            Human-readable description of the error. Validation failures return
            an array of per-field validation errors instead of a single string.
          example: Validation failed
        error:
          type: string
          description: Short name of the HTTP error.
          example: Bad Request
      required:
        - statusCode

````