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

# Get a language by id

> Fetch a single language for the current tenant using its identifier.

Request body:
- `id` (string, required): The language identifier. Must be a 24-character hexadecimal string.
  Note: despite the endpoint using GET, the identifier is read from the
  request body, not from the query string.

Behavior:
- Returns 404 if the identifier does not match a language owned by the current tenant.




## OpenAPI

````yaml /api-reference/ai-cms/openapi.json get /languages/getById
openapi: 3.1.0
info:
  title: Blog API
  version: 1.0.0
servers:
  - url: https://api.octaviatech.app/cms
    description: Production
security:
  - ApiKeyAuth: []
tags:
  - name: Tags
    description: Tag management endpoints
paths:
  /languages/getById:
    get:
      tags:
        - Languages
      summary: Get a language by id
      description: >
        Fetch a single language for the current tenant using its identifier.


        Request body:

        - `id` (string, required): The language identifier. Must be a
        24-character hexadecimal string.
          Note: despite the endpoint using GET, the identifier is read from the
          request body, not from the query string.

        Behavior:

        - Returns 404 if the identifier does not match a language owned by the
        current tenant.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              required:
                - id
              properties:
                id:
                  type: string
                  pattern: ^[a-fA-F0-9]{24}$
                  description: 24-character hex identifier of the language.
                  example: 64b1f2c9a7d4f1a2b3c4d5e6
            examples:
              Get Language:
                value:
                  id: 64b1f2c9a7d4f1a2b3c4d5e6
      responses:
        '200':
          description: OK
          content:
            application/json:
              example:
                success: true
                statusCode: 200
                message: Language retrieved successfully
                data:
                  _id: 64b1f2c9a7d4f1a2b3c4d5e6
                  code: en
                  name: English
                  isActive: true
        '401':
          description: Unauthorized
        '403':
          description: Forbidden (invalid or expired token, or tenant status gate)
        '404':
          description: Not found
        '500':
          description: Server error
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````