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

# Get Realtime Config

> Retrieve realtime message retention configuration



## OpenAPI

````yaml https://raw.githubusercontent.com/InsForge/InsForge/main/openapi/realtime.yaml get /api/realtime/config
openapi: 3.0.3
info:
  title: Insforge Realtime API
  version: 1.0.0
  description: >-
    Realtime channel management, message history, permissions, and retention
    API. Live pub/sub uses Socket.IO.
servers: []
security: []
tags:
  - name: Channels
    description: Configure realtime channel patterns, webhooks, and availability.
  - name: Messages
    description: Inspect realtime message history and delivery stats.
  - name: Permissions
    description: Manage helper endpoints for realtime RLS examples.
  - name: Configuration
    description: Manage realtime retention settings.
paths:
  /api/realtime/config:
    get:
      tags:
        - Configuration
      summary: Get Realtime Config
      description: Retrieve realtime message retention configuration
      responses:
        '200':
          description: Realtime configuration
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RealtimeConfig'
              example:
                retentionDays: null
      security:
        - bearerAuth: []
        - apiKey: []
components:
  schemas:
    RealtimeConfig:
      type: object
      required:
        - retentionDays
      properties:
        retentionDays:
          type: integer
          nullable: true
          minimum: 1
          description: >-
            Number of days messages are retained. Null means messages are kept
            indefinitely.
          example: null
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
    apiKey:
      type: apiKey
      in: header
      name: X-API-Key

````