Feeds

Get feed messages

Changed on

This endpoint returns the messages in a feed. Corresponds to liveblocks.getFeedMessages.

get/rooms/{roomId}/feeds/{feedId}/messages

Request

  • Base URL: https://api.liveblocks.io/v2
  • URL: https://api.liveblocks.io/v2/rooms/{roomId}/feeds/{feedId}/messages
  • Auth: none declared

Path parameters

roomIdstring required

ID of the room

Example:my-room-id
feedIdstring required

ID of the feed

Example:fd_abc123

Query parameters

cursorstring

A cursor used for pagination. Get the value from the nextCursor response of the previous page.

Example:eyJjcmVhdGVkQXQiOjE2NjAwMDA5ODgxMzd9
sinceinteger

Only return messages with createdAt greater than this Unix timestamp in milliseconds.

Example:1660000988137
limitinteger

A limit on the number of messages to be returned. The limit can range between 1 and 100, and defaults to 20.

Example:20

Response

Success. Returns list of messages in a feed.

nextCursorstring nullable required

Pass as cursor to fetch the next page, or null when there are no more results.

Example response

{
  "nextCursor": "eyJjcmVhdGVkQXQiOjE2NjAwMDA5ODgxMzd9",
  "data": [
    {
      "id": "msg_xyz789",
      "data": {
        "type": "text",
        "content": "Hello, world!"
      },
      "createdAt": 1660000988137,
      "updatedAt": 1660000988137
    }
  ]
}

Changes