Liveblocks icon

Liveblocks

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

Feed → Create

AI-generated

Summary

Create a new feed within a specified Liveblocks room by providing the room ID, a unique feed ID, and optional metadata and timestamp to define the feed.

Inputs

  • Room ID (required) — Liveblocks room identifier where the feed will be created.
  • Feed ID (required) — Unique identifier for the new feed to be created in the room.
  • Metadata — Optional JSON object containing additional metadata for the feed.
  • Timestamp (ms) — Optional creation timestamp in Unix milliseconds; defaults to server time if omitted or set to 0.

Output shape

a JSON object representing the newly created feed, including its identifiers, metadata, and timestamps as returned by the Liveblocks API

If the API call fails, error details may optionally include request debug information if 'Include Request in Error' is enabled.

Examples

Example 1: Create a feed with required and optional data

Specify Room ID and Feed ID to uniquely identify the feed, provide optional metadata for feed details, and optionally set a custom timestamp for the creation time.

Links

Discussion