# Saving

Source: https://mroffice.ai/en/developers/embed/saving

- The editor's Save (⌘S / Ctrl+S) and your requestSave() save at once. The editor first commits what is being typed and waits for every edit to reach the server, so the file is never a few keystrokes behind.
- When everyone has left a document someone edited, it is saved about 30 seconds later (as OnlyOffice saves when the last editor leaves).
- An open editor tells MR Office it is still there once a minute. An editor that closes says goodbye at once; one that stops without a word (a crashed tab, a laptop shut) counts as gone after three minutes without a sign, and the save above follows.
- POST /api/v1/embed/documents/{key}/save saves whoever has it open (a force-save from your server).
- Optional autosave every N seconds while someone edits: ask us to set it for your app.

A save writes the document the way MR Office saves an Office file it opened: into the original package, so parts nobody changed (styles, embedded objects, custom XML) stay byte for byte. A save with nothing new to write is reported as unchanged and makes no version. If a file holds something the writer cannot write back exactly, the editor asks the person before saving.
