Version History

Create version history snapshot

Changed on

This endpoint creates a new version history snapshot of the room, capturing both its Storage and Yjs documents. Corresponds to liveblocks.createVersionHistorySnapshot.

post/rooms/{roomId}/versions

Request

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

Path parameters

roomIdstring required

ID of the room

Example:my-room-id

Response

Success. Returns the created version ID.

Example response

{
  "data": {
    "id": "vh_abc123"
  }
}

Changes