Sessions
A session holds your conversation history and document state. Reuse a session ID to pick up where you left off.How sessions work
You choose thesession_id — any string you want. The API stores the conversation and document state for that session.
Persistence
Sessions persist across server restarts. You can close your browser, come back tomorrow, and resume with the samesession_id.
List sessions
Load session history
messages— Full conversation historydocument_state— Current document HTML, version ID, and attachment listeditor_action— What to do with the document:"update"(load the HTML),"clear"(reset), or"keep"(no change)

