---
agentTools:
  projectIndex: https://gigasheet.readme.io/llms.txt
---

# Datasets at root

Returns all datasets owned by the user at any folder depth, all files
that has directly been shared with the user (http request sender) including
any nested files where shared file is a folder and ids of files that has been
shared by the user. Since this may be a large amount of data may trim certain
fields to keep response size manageable.
This API endpoint is similar to the datasets endpoint, but this endpoint is
optimized to return the exact data that the Gigasheet client application expects.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "description": "Gigasheet - The Big Data Cloud Spreadsheet",
    "title": "Gigasheet API",
    "termsOfService": "https://gigasheet.com/terms-of-use",
    "contact": {
      "name": "Gigasheet Support",
      "url": "https://gigasheet.freshdesk.com/support/home",
      "email": "support@gigasheet.com"
    },
    "version": "1.0"
  },
  "paths": {
    "/library/": {
      "get": {
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "tags": [
          "file"
        ],
        "summary": "Datasets at root",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "//api.gigasheet.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "description": "API key authentication for Gigasheet, contact support@gigasheet.com for instructions",
        "type": "apiKey",
        "name": "X-GIGASHEET-TOKEN",
        "in": "header"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 99,
      "1": 106,
      "2": 153,
      "3": 247,
      "4": 195,
      "5": 218,
      "6": 27,
      "7": 0,
      "8": 15,
      "9": 88,
      "10": 245,
      "11": 236
    }
  }
}
```