> ## 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.

# Runtime Send

> Publish one message from a deployed server runtime. The injected token resolves exactly one project and environment and cannot address another tenant.



## OpenAPI

````yaml /openapi.json post /v1/runtime/queues/{queueName}/messages
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/runtime/queues/{queueName}/messages:
    post:
      tags:
        - queues
      summary: Runtime Send
      description: >-
        Publish one message from a deployed server runtime. The injected token
        resolves exactly one project and environment and cannot address another
        tenant.
      operationId: queues.runtimeSend
      parameters:
        - name: queueName
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        x-korve-max-bytes: 128000
        content:
          application/json:
            schema:
              type: object
              properties:
                body:
                  description: >-
                    JSON message body may not exceed 122,880 bytes; the complete
                    encoded message may not exceed 128,000 bytes.
                contentType:
                  type: string
                  description: Application media type. Defaults to application/json.
                delaySeconds:
                  type: integer
                  description: Per-message delay, from 0 to 86400 seconds.
                idempotencyKey:
                  type: string
                  maxLength: 128
                  description: >-
                    Caller key for safely retrying publication without creating
                    another message.
              required:
                - body
              additionalProperties: false
      responses:
        '202':
          description: Message accepted.
          content:
            application/json:
              schema:
                type: object
                properties:
                  messageId:
                    type: string
                  acceptedAt:
                    type: string
                    format: date-time
                required:
                  - messageId
                  - acceptedAt
        '401':
          description: >-
            Runtime token is absent, invalid, expired, or outside this
            environment.
        '404':
          description: No such queue in the runtime environment.
        '409':
          description: Queue is not accepting messages in its current state.
        '413':
          description: >-
            Customer body exceeds 122,880 bytes or its encoded envelope exceeds
            128,000 bytes.
        '422':
          description: Invalid message or delay.
        '429':
          description: Queue throughput or capacity limit reached.
      security:
        - appService: []
components:
  securitySchemes:
    appService:
      type: http
      scheme: bearer
      bearerFormat: korve_app_service

````