Returns the encryption keys to access a file with the ID specified in the request.
Name | Description | Type | Example |
fileId
sent in url
|
File ID | number | 1234 |
GET api/2.0/files/file/1234/publickeys Host: yourportal.onlyoffice.com Content-Type: application/json Accept: application/json
List of encryption key pairs: encrypted private key, public key, user ID
application/json
{ "status": 0, "response": [ { "PrivateKeyEnc": "some text", "PublicKey": "some text", "UserId": "some text" } ] }
text/xml
<result> <status>0</status> <response> <PrivateKeyEnc>some text</PrivateKeyEnc> <PublicKey>some text</PublicKey> <UserId>some text</UserId> </response> </result>