GET api/2.0/files/file/{fileId}/publickeys This function requires authentication

Description

Returns the encryption keys to access a file with the ID specified in the request.

Parameters
Name Description Type Example
fileId
sent in url
File ID number 1234
Example
GET api/2.0/files/file/1234/publickeys
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json
Returns

List of encryption key pairs: encrypted private key, public key, user ID

Example Response

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>