Dear OnlyOffice Support Team,
I hope this message finds you well.
I am currently working with OnlyOffice Document Server and I am looking to use the command-based API to trigger document saving operations. However, I am facing an issue regarding the dynamic key (which is required for the save command). I would appreciate your assistance with the following points:
- Retrieving the Dynamic Key:
I want to invoke the save functionality using the command-based API. However, I am uncertain about how to retrieve the dynamic key that is needed as a parameter in the save command. This key is generated dynamically during the editing session, but I am not sure how to access it for external use. - Available API for Retrieving the Key:
Is there an existing API or endpoint that allows us to retrieve the dynamic key directly, without relying on the editor’s internal callback mechanism? Specifically, I am looking for a way to get the dynamic key for a document before attempting to save it programmatically. - Challenges with Dynamic Key:
Since the dynamic key is different for each save operation and can only be obtained after each session, it is not feasible to use the key generated at initialization (since it is valid only during the initial loading). I need a way to retrieve the current dynamic key for each save operation, ideally before initiating the save command.
Could you kindly provide guidance on how to retrieve the dynamic key in such cases or suggest an appropriate approach for using the command-based save API effectively?
Thank you in advance for your support. I look forward to your response.
Document Server version: Community Edition 8.0.1
Operating System: Linux node70 4.18.0-305.3.1.el8.x86_64 #1 SMP Tue Jun 1 16:14:33 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Best regards,