Mega icon

Mega

Work with Mega API

Chat Room → Create Message

AI-generated

Summary

Send a message to a specified chat room with optional content attributes and message type.

Inputs

  • Chat Room ID (required) — ID of the chat room where the message will be posted.
  • Content (required) — Text content of the chat room message.
  • Message Type (required) — Defines whether the message is incoming or outgoing.
  • Echo ID — Optional temporary identifier for message synchronization purposes.
  • Content Attributes — Optional JSON object for specifying additional metadata like in-reply-to information.

Output shape

a single record representing the created message

The output includes the details of the created message sent to the chat room. Optional fields like Echo ID and Content Attributes can modify the message metadata. No pagination or multiple records are returned.

Links

Discussion