Get Version History
Changed onThis endpoint returns a list of version history snapshots for the room. The versions are returned sorted by creation date, from newest to oldest. Corresponds to liveblocks.getVersionHistory.
Request
- Base URL: https://api.liveblocks.io/v2
- URL: https://api.liveblocks.io/v2/rooms/{roomId}/versions
- Auth: none declared
Path parameters
ID of the room
Query parameters
A limit on the number of versions to be returned. The limit can range between 1 and 100, and defaults to 20.
A cursor used for pagination. Get the value from the nextCursor response of the previous page.
Response
Success. Returns the list of version history snapshots and the next page cursor.
Example response
{
"data": [
{
"id": "vh_abc123",
"createdAt": "2024-10-15T10:30:00.000Z",
"authors": [
{
"id": "user-123"
}
]
}
],
"nextCursor": "eyJjcmVhdGVkQXQiOiIyMDI0LTEwLTE1VDEwOjMwOjAwLjAwMFoifQ=="
}Changes
- info
api tag
Version Historyadded - info
api tag
Yjsremoved
- info
- breaking
removed the required property
//from the response with the status - breaking
removed the required property
//from the response with the status - info
api operation id
get-yjs-versionsremoved and replaced withget-version-history - info
the response property
//became required for the status
- breaking