v1
sessions

Persist a user-edited document (non-AI autosave).

Persist a HUMAN-edited document — the editor's debounced autosave + save-on-blur — WITHOUT an AI turn. Re-indexes the html into the target document (preserving its durable identity so it UPDATES the same Files entry), then saves it so pure typing is preserved AND other sessions with the same document open stay in sync. The AI-edit flow is unaffected (autosave saves first; a later AI result is merged with your saved edits). Non-billable, REST-only (a UI affordance, not an MCP tool).

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

Request

  • Base URL: https://api.superdocs.app
  • URL: https://api.superdocs.app/v1/sessions/{session_id}/documents/{document_id}/save
  • 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.