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

# Get Tenant Languages

> Public: le lingue che QUESTO negozio mostra, e la sua predefinita.

Sorgente `tenant_languages` (vedi `app.modules.languages.service`), non il
catalogo globale `/languages`: quello restituisce le stesse lingue e lo
stesso `is_default` a ogni tenant, perché la tabella non ha `tenant_id`.

Serve il selettore di lingua dei client — l'app mobile lo usa per decidere
quali voci mostrare e quale locale usare al primo avvio. `default` è
sempre uno dei `code` presenti in `languages`, mai altro.

`base_language` è la lingua delle colonne piatte del catalogo (BE-32,
`languages.service.store_base_locale`): la predefinita della selezione
PROPRIA del negozio, "it" per un negozio che non ne ha ancora una. Coincide
con `default` tranne in quel caso, dove `default` ripiega sul catalogo di
piattaforma. L'admin la usa per etichettare il campo base dei form e per la
lingua in cui l'AI scrive quel campo; la legge sull'host admin con il
Bearer, che risolve il negozio dal claim firmato (`TenantMiddleware`).

Cache: come `/tenant/brand`, un TTL breve va bene; un TTL lungo ritarda
l'intenzione dell'operatore che ha appena attivato una lingua.



## OpenAPI

````yaml https://api.vellaro.io/openapi/storefront.json get /api/v1/tenant/languages
openapi: 3.1.0
info:
  title: Vellaro Storefront API
  description: >-
    The API of storefronts and mobile apps. The store comes from the publishable
    key in the `X-Vellaro-Key` header (or from the store's domain); the
    customer's endpoints also take the customer's token as `Authorization:
    Bearer <access_token>`.
  version: 0.1.0
servers:
  - url: https://api.vellaro.io
    description: Produzione
security: []
tags:
  - name: Authentication
    description: >-
      Customer sign-up and login, tokens, password reset, email verification,
      Google and Apple login, two-factor authentication.
  - name: Catalog
    description: Products, categories and brands, with filters, sorting and pagination.
  - name: Search
    description: Full-text product search and suggestions as you type.
  - name: Cart
    description: >-
      The cart of a guest (`X-Cart-Token`) or of the logged-in customer, and the
      extra warranty offered on a product page.
  - name: Checkout & orders
    description: >-
      Checkout, the customer's orders and reorder, «Order on WhatsApp» (cart
      codes, clicks).
  - name: Payments
    description: >-
      The store's payment methods, paying an order again, and the confirmation
      steps of PayPal, PokPay and Iute.
  - name: Account
    description: >-
      The logged-in customer: profile, addresses, wishlist, digital downloads,
      subscriptions, affiliate account.
  - name: Reviews & questions
    description: Product reviews and product questions.
  - name: AI chat
    description: 'The store''s AI shopping assistant: conversations, messages, feedback.'
  - name: Content
    description: CMS pages, menus, banners, flipbooks and information pages.
  - name: Marketing & contact
    description: >-
      Newsletter sign-up and email links, the contact form, campaign click
      tracking.
  - name: Store
    description: >-
      The store for the storefront: brand, public settings, languages,
      translations, currencies, physical stores, theme.
  - name: Devices
    description: Push-notification devices of the mobile app.
paths:
  /api/v1/tenant/languages:
    get:
      tags:
        - Store
      summary: Get Tenant Languages
      description: >-
        Public: le lingue che QUESTO negozio mostra, e la sua predefinita.


        Sorgente `tenant_languages` (vedi `app.modules.languages.service`), non
        il

        catalogo globale `/languages`: quello restituisce le stesse lingue e lo

        stesso `is_default` a ogni tenant, perché la tabella non ha `tenant_id`.


        Serve il selettore di lingua dei client — l'app mobile lo usa per
        decidere

        quali voci mostrare e quale locale usare al primo avvio. `default` è

        sempre uno dei `code` presenti in `languages`, mai altro.


        `base_language` è la lingua delle colonne piatte del catalogo (BE-32,

        `languages.service.store_base_locale`): la predefinita della selezione

        PROPRIA del negozio, "it" per un negozio che non ne ha ancora una.
        Coincide

        con `default` tranne in quel caso, dove `default` ripiega sul catalogo
        di

        piattaforma. L'admin la usa per etichettare il campo base dei form e per
        la

        lingua in cui l'AI scrive quel campo; la legge sull'host admin con il

        Bearer, che risolve il negozio dal claim firmato (`TenantMiddleware`).


        Cache: come `/tenant/brand`, un TTL breve va bene; un TTL lungo ritarda

        l'intenzione dell'operatore che ha appena attivato una lingua.
      operationId: get_tenant_languages_api_v1_tenant_languages_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse_dict_'
components:
  schemas:
    ApiResponse_dict_:
      properties:
        data:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Data
        meta:
          anyOf:
            - $ref: '#/components/schemas/PaginationMeta'
            - type: 'null'
        error:
          anyOf:
            - type: string
            - type: 'null'
          title: Error
        error_code:
          anyOf:
            - type: string
            - type: 'null'
          title: Error Code
      type: object
      title: ApiResponse[dict]
    PaginationMeta:
      properties:
        page:
          type: integer
          title: Page
        page_size:
          type: integer
          title: Page Size
        total:
          type: integer
          title: Total
        total_pages:
          type: integer
          title: Total Pages
      type: object
      required:
        - page
        - page_size
        - total
        - total_pages
      title: PaginationMeta

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.