---
title: List revisions
slug: document-api/list-revisions
docTags: 
createdAt: 2025-10-20T09:39:14.634Z
---

{
  "id": "Lv3bwF4EGHTOd7vHHyYLC",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "https://api.catenda.com/v2/projects/{project-id}/libraries/{library-id}/items/{library-item-id}/revisions",
    "servers": [
      {
        "url": "https://api.catenda.com/v2/projects/{project-id}/libraries/{library-id}/items/{library-item-id}/revisions"
      }
    ],
    "name": "List revisions",
    "description": "<p>List all revisions for a library item.</p>\n<p>Supported library types are <strong>document</strong>.</p>",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "project-id",
          "type": "string",
          "example": "af2d8af0fa54465b89bf26dd3d92cfd0",
          "description": "Catenda project id"
        },
        {
          "kind": "required",
          "name": "library-id",
          "type": "string",
          "description": "Id of the library"
        },
        {
          "kind": "required",
          "name": "library-item-id",
          "type": "string",
          "description": "Id of the library item"
        }
      ],
      "headerParameters": [
        {
          "name": "accept",
          "type": "string",
          "kind": "optional",
          "description": "Generated from available response content types",
          "enum": [
            "application/json"
          ],
          "default": "application/json"
        }
      ],
      "queryParameters": [
        {
          "kind": "optional",
          "name": "createdAtFrom",
          "type": "string",
          "description": "Limit the result by providing a date in ISO 8601 format.\n\nResult will only contain items created after this date.\n"
        },
        {
          "kind": "optional",
          "name": "createdAtTo",
          "type": "string",
          "description": "Limit the result by providing a date in ISO 8601 format.\n\nResult will only contain items created before this date.\n"
        },
        {
          "kind": "optional",
          "name": "scope",
          "type": "string",
          "description": "<p>Limit the result by revision publication status.</p>\n<ul>\n<li><code>all</code>: Return all revisions.</li>\n<li><code>published</code>: Return only published revisions.</li>\n</ul>",
          "enum": [
            "all",
            "published"
          ]
        },
        {
          "kind": "optional",
          "name": "page",
          "type": "integer",
          "description": "Default value is 1"
        },
        {
          "kind": "optional",
          "name": "pageSize",
          "type": "integer",
          "description": "<p>Default 100, max 1000</p>"
        }
      ],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "Bearer",
          "name": "Bearer",
          "kind": "optional",
          "type": "http",
          "scheme": "bearer"
        }
      ],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "OK",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "array",
            "description": "",
            "schema": [
              {
                "name": "id",
                "kind": "optional",
                "type": "string",
                "description": "Id of the revision",
                "example": "h4c21c0e89774c8e92f42959c73561yh"
              },
              {
                "name": "parentId",
                "kind": "optional",
                "type": "string",
                "nullable": true,
                "description": "<p>A unique identifier for the parent of the library item.</p>\n<p>Represented as compacted UUID using 32 hexadecimal characters.</p>\n<p>If no parent is present, the value is null.</p>"
              },
              {
                "name": "version",
                "kind": "optional",
                "type": "number",
                "description": "Version of the revision",
                "example": 9
              },
              {
                "name": "extendedVersion",
                "kind": "optional",
                "type": "object",
                "description": "Extended version of the revision",
                "example": "",
                "schema": [
                  {
                    "name": "major",
                    "kind": "optional",
                    "type": "number",
                    "description": "Major version of the revision",
                    "example": 1
                  },
                  {
                    "name": "minor",
                    "kind": "optional",
                    "type": "string",
                    "nullable": true,
                    "description": "Minor version of the revision",
                    "example": 1
                  }
                ]
              },
              {
                "name": "name",
                "kind": "optional",
                "type": "string",
                "description": "File name of the revision",
                "example": "File.txt"
              },
              {
                "name": "createdAt",
                "kind": "optional",
                "type": "string",
                "description": "The date and time the revision was created in ISO 8601 format",
                "example": "2023-03-01T11:52:45.000Z"
              },
              {
                "name": "size",
                "kind": "optional",
                "type": "number",
                "description": "Size of the file in bytes",
                "example": 3745
              },
              {
                "name": "createdBy",
                "kind": "optional",
                "type": "object",
                "description": "<p>Represents a User, Organization or Team.</p>\n<p>A User is someone with a Catenda account, commonly representing a person.</p>\n<p>An Organization represents a company, project organization or an application. Organizations do not have a username and cannot sign in to Catenda.</p>\n<p>A Team represents a group of users within a project. Teams do not have a username and cannot sign in to Catenda.</p>",
                "modelRef": "#/components/schemas/user",
                "customType": "user",
                "schema": [
                  {
                    "name": "id",
                    "kind": "optional",
                    "type": "string",
                    "description": "Represented as compacted UUID using 32 hexadecimal characters",
                    "example": "524809076a694255b989d236517a55da"
                  },
                  {
                    "name": "name",
                    "kind": "optional",
                    "type": "string",
                    "description": "<p>The name of the user, limited to 128 characters</p>",
                    "example": "John Doe"
                  },
                  {
                    "name": "username",
                    "kind": "optional",
                    "type": "string",
                    "nullable": true,
                    "description": "<p>The handle the user identifies with.</p>\n<p>Commonly the username will be in email address format. Usernames are unique but subject to change, we recommend using the id field to reference users instead.</p>\n<p>If the user represents an organization or a team the value is always null.</p>\n<p>Limited to 50 characters.</p>",
                    "example": "john@doe.com"
                  },
                  {
                    "name": "email",
                    "kind": "optional",
                    "type": "string",
                    "description": "Email address of the User",
                    "example": "john@doe.com"
                  },
                  {
                    "name": "createdAt",
                    "kind": "optional",
                    "type": "string",
                    "description": "The date and time the user was created in ISO 8601 format",
                    "example": "2016-09-20T14:55:22.000Z"
                  },
                  {
                    "name": "avatarUrl",
                    "kind": "optional",
                    "type": "string",
                    "description": "The URL for the user avatar",
                    "example": "https://api.catenda.com/v2/avatar/397t0ccd8f74516096c738de15dc6512"
                  },
                  {
                    "name": "type",
                    "kind": "optional",
                    "type": "string<user | organization | team>",
                    "description": "<p>The type of user, valid values are:</p>\n<ul>\n<li>user</li>\n<li>organization</li>\n<li>team</li>\n</ul>",
                    "example": "user",
                    "enum": [
                      "user",
                      "organization",
                      "team"
                    ]
                  }
                ]
              },
              {
                "name": "additionalFormats",
                "kind": "optional",
                "type": "array",
                "description": "Additional formats available for the file revision",
                "example": "",
                "itemType": "object",
                "customType": "object[]",
                "schema": [
                  {
                    "name": "size",
                    "kind": "optional",
                    "type": "number",
                    "description": "Size of the file in bytes",
                    "example": 7147
                  },
                  {
                    "name": "mediaType",
                    "kind": "optional",
                    "type": "string",
                    "description": "Media type of the additional format file",
                    "example": "application/xod"
                  }
                ]
              },
              {
                "name": "downloadFileName",
                "kind": "optional",
                "type": "string",
                "description": "Filename on disk",
                "example": "File-1.txt"
              }
            ],
            "isExpanded": true
          }
        ]
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "izPFpqSmMRjiQfgt66Tkn",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url https://api.catenda.com/v2/projects/{project-id}/libraries/{library-id}/items/{library-item-id}/revisions \\\n     --header 'accept: application/json'"
        },
        {
          "id": "MnEaMRPndPz4hWxsx-RZ2",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar requestOptions = {\n   method: 'GET',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"https://api.catenda.com/v2/projects/{project-id}/libraries/{library-id}/items/{library-item-id}/revisions\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "N2itiyO-43gjpRmhhQbtQ",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.catenda.com/v2/projects/{project-id}/libraries/{library-id}/items/{library-item-id}/revisions\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "IoIoS0I_o9xgrIW_aso4v",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://api.catenda.com/v2/projects/{project-id}/libraries/{library-id}/items/{library-item-id}/revisions\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "izPFpqSmMRjiQfgt66Tkn"
    },
    "results": {
      "languages": [
        {
          "id": "P83vDqjV4HJwX_hKob1ho",
          "language": "200",
          "code": "// OK\n[\n  {\n    \"id\": \"h4c21c0e89774c8e92f42959c73561yh\",\n    \"parentId\": \"\",\n    \"version\": 9,\n    \"extendedVersion\": {\n      \"major\": 1,\n      \"minor\": 1\n    },\n    \"name\": \"File.txt\",\n    \"createdAt\": \"2023-03-01T11:52:45.000Z\",\n    \"size\": 3745,\n    \"createdBy\": {\n      \"id\": \"524809076a694255b989d236517a55da\",\n      \"name\": \"John Doe\",\n      \"username\": \"john@doe.com\",\n      \"email\": \"john@doe.com\",\n      \"createdAt\": \"2016-09-20T14:55:22.000Z\",\n      \"avatarUrl\": \"https://api.catenda.com/v2/avatar/397t0ccd8f74516096c738de15dc6512\",\n      \"type\": \"user\"\n    },\n    \"additionalFormats\": [\n      {\n        \"size\": 7147,\n        \"mediaType\": \"application/xod\"\n      }\n    ],\n    \"downloadFileName\": \"File-1.txt\"\n  }\n]"
        }
      ],
      "selectedLanguageId": "P83vDqjV4HJwX_hKob1ho"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}