---
agentTools:
  projectIndex: https://seafile-api.readme.io/llms.txt
---

# Get library history

Returns all the history of the library.

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Account Operations - User",
    "description": "The official SeaTable API Reference (OpenAPI 3.0). - Part 'User Account Operations'.",
    "version": "13.0"
  },
  "servers": [
    {
      "url": "https://{server}",
      "variables": {
        "server": {
          "default": "cloud.seafile.com"
        }
      }
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "metrics-enabled": false,
    "proxy-enabled": false
  },
  "components": {
    "securitySchemes": {
      "AccountTokenAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "This is the [Account-Token](/reference/authentication)."
      }
    },
    "parameters": {
      "page": {
        "name": "page",
        "in": "query",
        "required": false,
        "schema": {
          "type": "integer",
          "default": 1
        },
        "example": 1
      },
      "per_page": {
        "name": "per_page",
        "in": "query",
        "required": false,
        "schema": {
          "type": "integer"
        },
        "example": 25
      },
      "repo_id": {
        "name": "repo_id",
        "in": "path",
        "description": "The unique identifier of a library",
        "example": "90c4e9c2-ca5f-4881-8453-164d8b819f6f",
        "required": true,
        "schema": {
          "type": "string",
          "pattern": "^[0-9a-fA-F]{8}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{12}$"
        }
      }
    }
  },
  "paths": {
    "/api/v2.1/repos/{repo_id}/history/": {
      "get": {
        "tags": [
          "Libraries"
        ],
        "summary": "Get library history",
        "description": "Returns all the history of the library.",
        "security": [
          {
            "AccountTokenAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/repo_id"
          },
          {
            "$ref": "#/components/parameters/page"
          },
          {
            "$ref": "#/components/parameters/per_page"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "description": "Returns all historical operations",
                      "items": {
                        "type": "object",
                        "description": "Operational info",
                        "properties": {
                          "email": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "contact_email": {
                            "type": "string"
                          },
                          "time": {
                            "type": "string"
                          },
                          "commit_id": {
                            "type": "string"
                          },
                          "description": {
                            "type": "string"
                          },
                          "client_version": {
                            "type": "string"
                          },
                          "device_name": {
                            "type": "string"
                          },
                          "second_parent_id": {
                            "type": "string"
                          },
                          "tags": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "more": {
                      "type": "boolean"
                    }
                  },
                  "example": {
                    "data": [
                      {
                        "email": "77a423e4804a4d7ca1ec78a150d71229@auth.local",
                        "name": "Seafile",
                        "contact_email": "daniel@example.com",
                        "time": "2024-03-11T15:05:37+08:00",
                        "commit_id": "f8d665f9338ab8ec25ee064f2f3fcadad4c6c0b5",
                        "description": "Deleted \"222\"",
                        "client_version": null,
                        "device_name": null,
                        "second_parent_id": null,
                        "tags": []
                      },
                      {
                        "email": "77a423e4804a4d7ca1ec78a150d71229@auth.local",
                        "name": "Seafile",
                        "contact_email": "daniel@example.com",
                        "time": "2024-03-11T14:41:36+08:00",
                        "commit_id": "8def9edbc1e78b1c4b4a41796a76a54f2b36da59",
                        "description": "Deleted \"111\"",
                        "client_version": null,
                        "device_name": null,
                        "second_parent_id": null,
                        "tags": []
                      }
                    ],
                    "more": false
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "_id": {
    "buffer": {
      "0": 103,
      "1": 183,
      "2": 248,
      "3": 230,
      "4": 103,
      "5": 20,
      "6": 160,
      "7": 0,
      "8": 41,
      "9": 50,
      "10": 176,
      "11": 71
    }
  }
}
```