ONLYOFFICE Docs v7.3 released: enhanced forms, SmartArt, new security settings, Watch Window, and more
ONLYOFFICE Docs v7.3 released

How can i get the document.key?


Each file has its own unique ID. For example, ID=1234 in the editor. This ID can be seen in the document link (

API methods require a different document.key:

Using a url as a document.key does not work. Tell me please, how can I find out the document.key of a specific document?

Hello @arxonix7

Please share the desired scenario that you are trying to achieve.

Hello @Constantine

To get a fresh revision of documents, it is necessary that all editors leave it. I want to use the drop method to exclude users:

I also want to get information about editors in document:

Unfortunately, in the Workspace it is impossible to get the document key.

However, if you want to have revisions of the files while they are edited as a workaround solution you can enable ‘Keep intermediate versions while editing’ feature in the settings of Document Module. It will activate a ‘Save’ button on the main toolbar and by clicking it or using CTRL+S combination the saving of the document will be triggered so you won’t need to end the editing session.

Ok, thanks for answer!

1 Like