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.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Body
Response
Successful Response

