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

# Send Live Chat Message

> Send a message to a stream's chat, optionally as a reply.

Send a message to a stream's chat, optionally as a reply to another message.

## Behavior

* `body` is 1 to 200 characters.
* `reply_to` must be a message in the same chat that has not been removed, otherwise `404`.
* If the streamer turned the chat off, the response is `403` with type `chat_off`.
* If you are timed out, the response is `403` with type `timed_out` and `expires_at`, when you can chat again. If you are banned, it is `403` with type `banned`.
* With slow mode on, sending again too soon gives `403` with type `slow_mode` and `retry_at`, when you can send your next message. The streamer, their moderators and staff are exempt.
* If the streamer blocked you, or you blocked them, the response is `403` with type `blocked`.
* The response is the message as other viewers will see it.

## Example

```bash theme={null}
curl -X POST "https://relay.snipp.gg/users/987654321098765432/live/chat" \
  -H "relay-key: YOUR_RELAY_KEY" \
  -H "Content-Type: application/json" \
  -d '{"body": "gg", "reply_to": 127}'
```


## OpenAPI

````yaml relay-reference/openapi.json POST /users/{id}/live/chat
openapi: 3.0.0
info:
  title: Snipp.gg Relay API
  description: >-
    First-party Snipp API for the full user experience: uploads, posts,
    discover, likes, comments, notifications, blocks and profile management.
  version: 3.0.0
servers:
  - url: https://relay.snipp.gg
    description: Default. Load-balanced across regions. No upload cap.
  - url: https://eu-west-1.relay.snipp.gg
    description: EU West regional endpoint. Pins uploads and storage to EU West.
  - url: https://us-west-1.relay.snipp.gg
    description: US West regional endpoint. Pins uploads and storage to US West.
  - url: https://pulsar.snipp.gg
    description: Alternative host. Capped at 100 MB per upload.
security:
  - relayKeyAuth: []
paths:
  /users/{id}/live/chat:
    post:
      summary: Send Live Chat Message
      description: Send a message to a stream's chat, optionally as a reply.
      operationId: sendLiveChatMessage
      parameters:
        - $ref: '#/components/parameters/UserId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                body:
                  type: string
                  maxLength: 200
                  description: 1 to 200 characters.
                reply_to:
                  type: integer
                  nullable: true
                  description: ID of a message in the same chat to reply to.
              required:
                - body
            example:
              body: gg
              reply_to: 127
      responses:
        '201':
          description: Sent.
          content:
            application/json:
              schema:
                type: object
                properties:
                  chat_message:
                    $ref: '#/components/schemas/ChatMessage'
                required:
                  - chat_message
              example:
                chat_message:
                  id: 128
                  body: gg
                  created_at: '2026-11-03T08:05:12.000Z'
                  role: null
                  author:
                    id: '9876543210'
                    username: snipp
                    nickname: Snipp
                    avatar: https://cdn.snipp.gg/avatar.png
                    verified: true
                    plan: free
                  reply_to:
                    id: 127
                    author:
                      id: '1234567890'
                      username: nitcord
                      nickname: nitcord
                      avatar: https://cdn.snipp.gg/avatar.png
                      verified: true
                      plan: ultra
                    body: welcome to the stream
                    deleted: false
                  deleted: false
                  deleted_by: null
          headers:
            request-id:
              $ref: '#/components/headers/RequestId'
        '400':
          $ref: '#/components/responses/E400'
        '401':
          $ref: '#/components/responses/E401'
        '403':
          $ref: '#/components/responses/E403'
        '404':
          $ref: '#/components/responses/E404'
        '405':
          $ref: '#/components/responses/E405'
        '429':
          $ref: '#/components/responses/E429'
        '500':
          $ref: '#/components/responses/E500'
components:
  parameters:
    UserId:
      name: id
      in: path
      required: true
      description: User ID, or `@me` for your own account.
      schema:
        type: string
      example: '@me'
  schemas:
    ChatMessage:
      type: object
      properties:
        id:
          type: integer
        body:
          type: string
          nullable: true
          maxLength: 200
          description: '`null` when a moderator removed the message.'
        created_at:
          type: string
          format: date-time
        role:
          type: string
          enum:
            - streamer
            - moderator
          nullable: true
        author:
          $ref: '#/components/schemas/UserRef'
        reply_to:
          allOf:
            - $ref: '#/components/schemas/ChatReply'
          nullable: true
        deleted:
          type: boolean
          description: A moderator, the streamer or staff removed it.
        deleted_by:
          allOf:
            - $ref: '#/components/schemas/UserRef'
          nullable: true
          description: >-
            Who removed it. Only shown to the streamer, their moderators and
            staff.
        restricted:
          type: string
          enum:
            - timed_out
            - banned
          nullable: true
          description: >-
            Whether the author is timed out or banned from this chat right now.
            Only included for the streamer, their moderators and staff.
      required:
        - id
        - body
        - created_at
        - role
        - author
        - reply_to
        - deleted
        - deleted_by
    UserRef:
      type: object
      properties:
        id:
          type: string
          description: User ID (snowflake).
        username:
          type: string
          nullable: true
        nickname:
          type: string
          nullable: true
        avatar:
          type: string
          description: Avatar URL. Falls back to `https://cdn.snipp.gg/avatar.png`.
        verified:
          type: boolean
        plan:
          $ref: '#/components/schemas/Plan'
      required:
        - id
        - username
        - nickname
        - avatar
        - verified
        - plan
      description: A user embedded inside another resource.
    ChatReply:
      type: object
      description: The message this one replies to.
      properties:
        id:
          type: integer
        author:
          $ref: '#/components/schemas/UserRef'
        body:
          type: string
          nullable: true
          description: '`null` when the original was removed.'
        deleted:
          type: boolean
      required:
        - id
        - author
        - body
        - deleted
    Error:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/ErrorDetail'
      required:
        - error
      description: Every non-2xx response has this body.
    Plan:
      type: string
      enum:
        - free
        - plus
        - ultra
    ErrorDetail:
      type: object
      properties:
        type:
          $ref: '#/components/schemas/ErrorType'
        message:
          type: string
          description: Human-readable sentence. Do not match on it; use `type`.
        username:
          type: string
          description: >-
            `suspended` on `GET /users/{id}` only: the suspended user's
            username.
        quota:
          type: integer
          description: >-
            `quota_exceeded` only: the limit, in bytes for the weekly quota or
            minutes for priority minutes.
        used:
          type: integer
          description: >-
            `quota_exceeded` only: usage in the current window, in the same unit
            as `quota`.
        resets_at:
          type: string
          format: date-time
          description: '`quota_exceeded` only: when the window resets.'
          nullable: true
        failed:
          type: array
          items:
            $ref: '#/components/schemas/FailedFile'
          description: '`upload_failed` only: one entry per file.'
        expires_at:
          type: string
          format: date-time
          description: '`timed_out` only: when the timeout ends.'
        retry_at:
          type: string
          format: date-time
          description: '`slow_mode` only: when you can send your next message.'
        missing:
          type: array
          items:
            type: integer
          description: >-
            `Missing chunks.` on the last piece of a chunked upload only:
            zero-based indexes of the pieces the server does not have. Send
            them, then the last piece again.
      required:
        - type
        - message
    ErrorType:
      type: string
      enum:
        - invalid_request
        - unauthorized
        - forbidden
        - suspended
        - blocked
        - moderated
        - plan_required
        - timed_out
        - banned
        - chat_off
        - slow_mode
        - not_found
        - method_not_allowed
        - file_too_large
        - unsupported_type
        - quota_exceeded
        - rate_limited
        - upload_failed
        - internal
        - unavailable
      description: Machine-readable error category. See [Errors](/concepts/errors).
    FailedFile:
      type: object
      properties:
        index:
          type: integer
          description: Zero-based position of the file in the request.
        error:
          $ref: '#/components/schemas/ErrorDetail'
      required:
        - index
        - error
      description: >-
        A file that was not stored. `error` has the same shape as a top-level
        error.
  headers:
    RequestId:
      description: Unique ID for the request. Include it when contacting support.
      schema:
        type: string
        format: uuid
  responses:
    E400:
      description: Invalid request
      headers:
        request-id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    E401:
      description: Missing or invalid key
      headers:
        request-id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    E403:
      description: Not allowed
      headers:
        request-id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    E404:
      description: Not found
      headers:
        request-id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    E405:
      description: Method not allowed
      headers:
        request-id:
          $ref: '#/components/headers/RequestId'
        Allow:
          description: Methods this path accepts.
          schema:
            type: string
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    E429:
      description: Rate limited
      headers:
        request-id:
          $ref: '#/components/headers/RequestId'
        Retry-After:
          description: Seconds to wait before retrying.
          schema:
            type: integer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    E500:
      description: Internal error
      headers:
        request-id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    relayKeyAuth:
      type: apiKey
      in: header
      name: relay-key
      description: Your relay key from snipp.gg/settings/relay

````

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