Liveblocks icon

Liveblocks

Call the Liveblocks REST API (rooms, comments, feeds, Yjs, AI, and more)

Feed → Create Message

AI-generated

Summary

Create a new message in a specified Liveblocks feed within a given room by sending JSON payload and optional metadata.

Inputs

  • Room ID (required) — Identifier of the Liveblocks room where the feed exists.
  • Feed ID (required) — Identifier of the feed within the room to which the message is added.
  • Message Data (required) — A JSON object storing the contents or payload of the message.
  • Message ID — Optional custom client-provided ID for the message.
  • Timestamp (ms) — Optional creation timestamp in Unix milliseconds; omit or provide 0 to use server default.

Output shape

The created message record returned as a JSON object with message details reflecting the stored payload and metadata.

The output includes the server's representation of the message. If the request fails, and 'Include Request in Error' is enabled, error details will include request data for debugging.

Links

Discussion