Preview a document version
GET
/api/v1/collab/history/{item_id}/points/{point}/preview
const url = 'https://example.com/api/v1/collab/history/example/points/example/preview';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/v1/collab/history/example/points/example/preview \ --header 'Authorization: Bearer <token>'Return the owner’s isolated Yjs state at a stable history point. The response does not change the live document. Route: /api/v1/collab/history/{item_id}/points/{point}/preview. Inputs: item_id, point. Safe reads can use bounded retries.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”item_id
required
string
Stable item ID
point
required
string
History point ID
Responses
Section titled “Responses”Yjs v1 state update
Media typeapplication/vnd.calternal.yjs-update-v1
string
Media typeapplication/json
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}Media typeapplication/json
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}Media typeapplication/json
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}Media typeapplication/json
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}Media typeapplication/json
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}