---
title: "Send message to channel (deprecated)"
method: POST
path: "/api/messaging/central-channels/{channelId}/messages"
tags: ["messaging"]
deprecated: true
---

# Send message to channel (deprecated)

`POST /api/messaging/central-channels/{channelId}/messages`

## Request

- Base URL: `http://localhost:3000`
- URL: `http://localhost:3000/api/messaging/central-channels/{channelId}/messages`
- Auth: none declared

> **Deprecated.**

Send a message to a channel. Use POST /channels/{channelId}/messages instead.

## Path parameters

- `channelId` string, uuid, required

## Request body

- object
  - `author_id` string, uuid, required: Central ID of the author sending the message
  - `content` string, required: Message content
  - `in_reply_to_message_id` string, uuid: ID of the root message being replied to (optional)
  - `server_id` string, uuid, required: Central server ID this channel belongs to
  - `raw_message` union: Raw message payload (string or JSON object)
    - object
    - string
  - `metadata` object: Additional metadata such as user_display_name
  - `source_type` string: Source identifier (e.g. 'eliza_gui')

## Response `201`

Message sent successfully

- object
  - `success` boolean
  - `data` object
    - `message` Message
      - `id` string, uuid: Unique identifier for the message
      - `text` string: Message text content
      - `userId` string, uuid: ID of the user who sent the message
      - `agentId` string, uuid: ID of the agent (if sent by agent)
      - `roomId` string, uuid: ID of the room the message belongs to
      - `createdAt` integer: Unix timestamp when the message was created
      - `metadata` object: Additional message metadata

## Other responses

- `400`: Invalid request
- `404`: Channel not found

## Changes

- **2026-11-03** `d606a12682bb`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/elizaos/apis/eliza-os-api/changes/api/messaging/central-channels/:channelId/messages/post.md)

---

[API](https://skmtc.dev/elizaos/apis/eliza-os-api.md) - [All operations](https://skmtc.dev/elizaos/apis/eliza-os-api/llms.txt) - [OpenAPI document](https://skmtc.dev/elizaos/apis/eliza-os-api/revisions/d606a12682bb?raw)
