> ## 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 article by id (public)

> Multilingual fields are localized from the `lang` or `accept-language` request header. Omit the headers to receive every configured language.



## OpenAPI

````yaml /api-reference/ai-cms/openapi.json get /articles/getById/{id}
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:
  /articles/getById/{id}:
    get:
      tags:
        - Articles
      summary: Get article by id (public)
      description: >-
        Multilingual fields are localized from the `lang` or `accept-language`
        request header. Omit the headers to receive every configured language.
      parameters:
        - in: path
          name: id
          required: true
          schema:
            type: string
            pattern: ^[a-fA-F0-9]{24}$
            example: '{{objectId}}'
      responses:
        '200':
          description: OK
          content:
            application/json:
              example:
                success: true
                statusCode: 200
                message: OK
                data:
                  article:
                    id: '{{objectId}}'
                    slug: droopy-nose
                    mainTitle:
                      en: Droopy Nose
                      es: Nariz caída
                    summary:
                      en: Short summary
                      es: Resumen breve
                    content:
                      en: <p>HTML</p>
                      es: <p>HTML</p>
                    category:
                      - '{{objectId}}'
                    subCategory:
                      - '{{objectId}}'
                    author: '{{objectId}}'
                    tags: []
                    gallery:
                      - https://cdn.example.com/img1
                    publishDate: '2025-05-22T21:42:41.596Z'
                    isPublished: true
        '404':
          description: Not found
          content:
            application/json:
              example:
                success: false
                statusCode: 404
                message: Article not found
                data: null
        '500':
          description: >-
            Server error (a non-ObjectId `id` is reported as 406 internally and
            coerced to 500)
          content:
            application/json:
              example:
                success: false
                statusCode: 500
                message: is not valid
                data: null
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````