Restore the full conversation and document state for a previous session.
Returns complete message history (user and AI), final document HTML with chunk IDs preserved, attachment list, and editor actions (font, color, alignment changes). Use to continue editing a document you started in a prior session. The AI rehydrates with full context of all prior decisions, chunk IDs, and attachments. Pass include_document_html=false to skip the full document body when you only need the conversation.
Request
- Base URL: https://api.superdocs.app
- URL: https://api.superdocs.app/v1/sessions/{session_id}/history
- Auth: HTTP bearer
Path parameters
Query parameters
Durable id of the document to focus on restore (e.g. the file the user clicked in the Files view). When set, that document is shown in the editor and marked focused in the roster; omit to use the session's own last-focused document.
When false, omit the restored document's full HTML body (document_state.html_content) to keep your context small — agents that just need the conversation + metadata should set false. Default true (the web app needs the body to re-render the editor).
Headers
Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.