Get Started
API backend
API system
More information

GET api/2.0/files/file/{fileId}/edit/history

Description

Returns the version history of a file with the ID specified in the request.

Parameters
Name Description Type Example
fileId
sent in url
File ID `0
doc
sent in body
Shared token string some text
Example
GET api/2.0/files/file/{fileid}/edit/history
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "doc": "some text"
}
Returns

Version history data

Example Response

application/json

{
  "status": 0,
  "response": [
    {
      "ID": 1234,
      "Key": "some text",
      "Version": 1234,
      "VersionGroup": 1234,
      "ChangesHistory": "some text",
      "ServerVersion": "some text"
    }
  ]
}

text/xml

<result>
  <status>0</status>
  <response>
    <ID>1234</ID>
    <Key>some text</Key>
    <Version>1234</Version>
    <VersionGroup>1234</VersionGroup>
    <ChangesHistory>some text</ChangesHistory>
    <ServerVersion>some text</ServerVersion>
  </response>
</result>