Actions45
- Chat Actions
- List Actions
- Member Actions
- Object Actions
- Property Actions
- Search Actions
- Space Actions
- Tag Actions
- Template Actions
- Type Actions
Chat → Send Message
AI-generatedSummary
Send a message into a specified chat within a space in Anytype.
Inputs
- Space (required) — The ID of the space where the chat exists; selected via a dropdown that loads available spaces.
- Chat (required) — The ID of the chat to send the message to; loaded based on the chosen space.
- Body Mode (required) — Choose between 'Simple' mode to provide a text message or 'JSON' mode to supply a full JSON request body.
- Text (required) — The text content of the message to send; visible and required only when 'Body Mode' is 'Simple'.
- Body (JSON) (required) — The full JSON request body, matching AddChatMessageRequest schema, which must include 'text' and optionally supports 'style', 'marks', 'attachments', and 'reply_to_message_id'; visible only when 'Body Mode' is 'JSON'.
Output shape
a single message record
Returns the created message object from the Anytype API. The response is unwrapped to the 'message' property. The output shape corresponds to the sent message, including any metadata provided or generated by the API.
Examples
Example 1: Send a simple text message to a chat in a space
Specify the Space ID and Chat ID from dropdowns, select 'Simple' for Body Mode, and enter the message text into the 'Text' field.
Example 2: Send a complex message with attachments or reply references
Specify Space and Chat IDs, select 'JSON' for Body Mode, then enter the full JSON structure including desired fields like 'attachments' or 'reply_to_message_id' in 'Body (JSON)'.