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

# Publish

> Publish one JSON event of at most 65,536 encoded bytes. Live fan-out is at most once.



## OpenAPI

````yaml /openapi.json post /v1/orgs/{orgId}/projects/{projectId}/realtime/channels/{channelId}/events
openapi: 3.1.0
info:
  title: Korve API
  version: 0.1.0
  description: >-
    Typed control plane for deploying applications and explicitly provisioning
    their managed infrastructure.
servers:
  - url: https://api.korve.dev
security: []
paths:
  /v1/orgs/{orgId}/projects/{projectId}/realtime/channels/{channelId}/events:
    post:
      tags:
        - realtime
      summary: Publish
      description: >-
        Publish one JSON event of at most 65,536 encoded bytes. Live fan-out is
        at most once.
      operationId: realtime.publish
      parameters:
        - name: orgId
          in: path
          required: true
          schema:
            type: string
          description: The organization's id (UUID) or slug — either form is accepted.
        - name: projectId
          in: path
          required: true
          schema:
            type: string
          description: The project's id (UUID) or slug — either form is accepted.
        - name: channelId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        x-korve-max-bytes: 65536
        content:
          application/json:
            schema:
              type: object
              properties:
                event:
                  type: string
                  minLength: 1
                  maxLength: 128
                  pattern: ^[A-Za-z][A-Za-z0-9._:-]*$
                data:
                  description: JSON event payload.
                idempotencyKey:
                  type: string
                  minLength: 1
                  maxLength: 128
              required:
                - event
                - data
              additionalProperties: false
      responses:
        '202':
          description: Event accepted.
          content:
            application/json:
              schema:
                type: object
                properties:
                  messageId:
                    type: string
                  sequence:
                    type: integer
                  acceptedAt:
                    type: string
                    format: date-time
                required:
                  - messageId
                  - sequence
                  - acceptedAt
                additionalProperties: false
        '404':
          description: No such channel.
        '409':
          description: Channel is paused or unavailable.
        '413':
          description: Encoded event exceeds 65,536 bytes.
        '429':
          description: Channel message-rate quota reached.
      security:
        - apiKey: []
        - session: []
components:
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      bearerFormat: korve_api_key
    session:
      type: apiKey
      in: cookie
      name: korve.session_token

````