- Developer home
- Embed editors
- If you know WOPI or OnlyOffice
If you know WOPI or OnlyOffice
This page is not yet translated into your language; it is shown in English.
If you know WOPI or OnlyOffice
MR Office is also a WOPI client: a host that speaks WOPI uses MR Office directly, with its own CheckFileInfo, GetFile, PutFile and locks (see Use MR Office as a WOPI app). This table maps the WOPI and OnlyOffice concepts onto the embed API.
| Concept | MR Office embed |
|---|---|
WOPI access_token / access_token_ttl | Session token (≤ 1 h, single use) exchanged for a 10-hour session; renewed with refreshToken(). |
CheckFileInfo / GetFile | The token's file claims; MR Office fetches file.url or uses an upload. |
PutFile + X-WOPI-ItemVersion | Save callback with version and sha256; your answer's version is your item version. |
Locks (30 min) | A document is locked while sessions are open (GET …/documents/{key}: locked); a token for another version is refused with 409. |
OnlyOffice document.key | file.key: the same key is the same collaborative session. |
OnlyOffice callback status 2 / 6 | document.saved with reason session_end / manual, api or autosave. |
PostMessage App_LoadingStatus, UI_Close | ready, destroyed. |
WOPI UserCanWrite / ReadOnly | mode edit / view (the server refuses every write of a view session). |
WOPI DisablePrint, DisableExport, DisableCopy | permissions.print, permissions.download and permissions.export, permissions.copy. |
OnlyOffice permissions.edit / review / comment / fillForms | mode edit / review / comment / fillForms, with permissions.acceptRejectChanges and permissions.comment. |
OnlyOffice permissions.download / print / copy, editCommentAuthorOnly | permissions.download / print / copy, manageComments: false. |
OnlyOffice onRequestUsers, onRequestSendNotify | onRequestUsers; onMention and the comment.mention webhook. |
Box / Google Drive watermarking | watermark (on screen, and with inExports in every exported or printed PDF). |