v1
sessions

Restore a document another session archived, keeping your current edits (web app).

Restore (un-archive) a document that was archived, re-linking it to this session and bringing its content back. document_id is the session-local id (same as /save); the durable id is recovered from the cached document. Idempotent: restoring an already-active (or never-archived) document is a no-op. Non-billable.

Two shapes: WITHOUT a body (e.g. an AI agent restoring a document by id) the archived content is restored as-is; WITH a body carrying the current editor HTML (the web app's "keep editing (restores it)" choice after another session deleted the document) the document is restored AND the supplied edits are saved on top, so it converges for everyone.

post/v1/sessions/{session_id}/documents/{document_id}/unarchive

Request

  • Base URL: https://api.superdocs.app
  • URL: https://api.superdocs.app/v1/sessions/{session_id}/documents/{document_id}/unarchive
  • Auth: HTTP bearer

Path parameters

session_idstring required
document_idstring required

Headers

authorizationstring nullable

Request body

htmlstring required
page_setupobject nullable
window_idstring nullable
base_htmlstring nullable
base_digeststring nullable
touched_chunk_idsstring[] nullable
deleted_part_chunk_idsstring[] nullable
accept_rebased_committedboolean nullable

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.