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

# Old: get a news post

> One published post visible to everyone, with Markdown and pre rendered HTML (`processed_content`).

**Deprecated.** Kept so existing integrations keep working, but it will not get new fields. Use [`GET /api/public/modules/news/posts/{post}`](/api-reference/module-api) instead, which uses the standard response envelope, pagination and error format.

**Authentication:** none, no API key needed.

**Rate limit:** 10 requests per minute per IP.



## OpenAPI

````yaml /docs/modules-api.yaml get /v1/news/{slug}
openapi: 3.1.0
info:
  title: Spartan Module API
  version: '2026.11'
  description: >-
    Endpoints added by modules. Key endpoints live under
    `/api/application/modules/<module>/` and need an API key with the module
    permission. Content modules (Blog, News, Knowledge Base, Status) also offer
    keyless read only endpoints under `/api/public/modules/<module>/` that only
    return what an anonymous visitor can see.
servers:
  - url: https://{domain}/api
    description: Your Spartan installation
    variables:
      domain:
        default: billing.example.com
        description: Domain of your Spartan installation, without https://
security:
  - bearerAuth: []
tags:
  - name: Blog
  - name: Blog (public)
  - name: News
  - name: News (public)
  - name: Knowledge Base
  - name: Knowledge Base (public)
  - name: Status
  - name: Status (public)
  - name: Forms
  - name: Affiliates
  - name: Deprecated endpoints
paths:
  /v1/news/{slug}:
    get:
      tags:
        - Deprecated endpoints
      summary: 'Old: get a news post'
      description: >-
        One published post visible to everyone, with Markdown and pre rendered
        HTML (`processed_content`).


        **Deprecated.** Kept so existing integrations keep working, but it will
        not get new fields. Use [`GET
        /api/public/modules/news/posts/{post}`](/api-reference/module-api)
        instead, which uses the standard response envelope, pagination and error
        format.


        **Authentication:** none, no API key needed.


        **Rate limit:** 10 requests per minute per IP.
      operationId: getNewsLegacy
      parameters:
        - name: slug
          in: path
          required: true
          description: Post slug.
          schema:
            type: string
      responses:
        '200':
          description: 'Success. Old envelope `{"success": true, "data": ...}`.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  data:
                    description: Payload.
              example:
                success: true
                data:
                  id: 4
                  title: Our new control panel is live
                  description: >-
                    Short interruptions on Saturday night while we upgrade the
                    network.
                  slug: new-control-panel
                  content: >-
                    # Welcome to Our News Article


                    This is a sample news article written in Markdown. You can
                    edit this content using the editor below.


                    ## Getting Started


                    Replace this content with your own news article. You can use
                    standard Markdown syntax:


                    - **Bold text** for emphasis


                    ...
                  processed_content: >-
                    <h1 class="text-5xl font-bold mb-6 mt-8
                    text-primary">Welcome to Our News Article</h1>


                    <p class="mb-4 text-secondary leading-relaxed">This is a
                    sample news article written in Markdown. You can edit this
                    content using the editor below.</p>



                    ...
                  icon: null
                  layout: authenticated
                  meta_title: null
                  meta_description: null
                  reactions_enabled: true
                  allowed_reactions:
                    - 👍
                  reaction_counts: []
                  published_at: '2026-04-03T09:08:43.000000Z'
                  created_at: '2026-04-03T09:08:43.000000Z'
                  updated_at: '2026-04-03T09:08:43.000000Z'
        '404':
          description: Not found. Old envelope.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  message:
                    type: string
              example:
                success: false
                message: News article not found
      deprecated: true
      security: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key created in Admin, API. Send it as `Authorization: Bearer <key>`.
        Each key has its own permissions and optional IP allow list.

````

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