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

# Create a new chat channel



## OpenAPI

````yaml /api-reference/openapi.json post /chat/channels
openapi: 3.0.0
info:
  title: EngageFabric API
  description: >-
    EngageFabric is a multi-tenant SaaS gamification framework. This API
    provides endpoints for managing players, tracking events, quests,
    adventures, leaderboards, lobbies, and real-time features.
  version: 1.0.0
  contact:
    name: EngageFabric Support
    url: https://engagefabric.com
    email: support@engagefabric.com
  license:
    name: Proprietary
    url: https://engagefabric.com/terms
servers:
  - url: https://api.engagefabric.com
    description: Production
  - url: http://localhost:3000
    description: Development
security: []
tags:
  - name: auth
    description: Authentication endpoints
  - name: tenants
    description: Tenant management
  - name: projects
    description: Project management
  - name: players
    description: Player management and game state
  - name: events
    description: Event ingestion and tracking
  - name: quests
    description: Quest management and progress
  - name: adventures
    description: Adventure/season management
  - name: leaderboards
    description: Leaderboard rankings
  - name: lobbies
    description: Multiplayer lobby management
  - name: chat
    description: Real-time chat
  - name: rules
    description: Rules engine configuration
paths:
  /chat/channels:
    post:
      tags:
        - Chat
      summary: Create a new chat channel
      operationId: ChatController_createChannel
      parameters:
        - name: projectId
          required: true
          in: query
          schema:
            type: string
        - name: playerId
          required: true
          in: query
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateChannelDto'
      responses:
        '201':
          description: Channel created successfully
      security:
        - api-key: []
components:
  schemas:
    CreateChannelDto:
      type: object
      properties:
        name:
          type: string
          description: Channel name
          example: General
        description:
          type: string
          description: Channel description
        type:
          type: string
          description: Channel type
          enum:
            - PROJECT
            - LOBBY
            - DIRECT
            - GROUP
          default: PROJECT
        maxMessageLength:
          type: number
          description: Maximum message length
          default: 1000
          minimum: 1
          maximum: 10000
        rateLimit:
          type: number
          description: Rate limit (messages per minute)
          default: 30
          minimum: 1
          maximum: 600
        slowModeSeconds:
          type: number
          description: Slow mode (minimum seconds between messages)
        profanityFilterEnabled:
          type: boolean
          description: Enable profanity filter
          default: true
        moderationLevel:
          type: string
          description: Moderation level
          enum:
            - NONE
            - LIGHT
            - STANDARD
            - STRICT
          default: STANDARD
        retentionDays:
          type: number
          description: Message retention in days
        metadata:
          type: object
          description: Additional metadata
      required:
        - name

````