How can i get the document.key?

Hello @michaelT

If you are trying to integrate Document Server with your own application, then document key generation is your task as independent integrator and must be performed on document storage application side.

If you are struggling with this, you can download and install a language-specific example which is a simple DMS (Document Management System) to check out how it is performed there:
https://api.onlyoffice.com/editors/demopreview

The integration examples are used to demonstrate document editors functions and the ways to connect Document Server to your own application. DO NOT USE these examples on your own server without PROPER CODE MODIFICATIONS! If you enabled any of the test examples, disable it before going for production.