---
updatedAt: 2026-06-26T23:36:44.000Z
agentTools:
  projectIndex: https://docs.smartsurvey.io/llms.txt
---

# Get All Files

Gets all files for your account with paging

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "SS Public API",
    "version": "v2"
  },
  "servers": [
    {
      "url": "https://{host}/v2",
      "description": "Select the host for the region your account's data is stored in.",
      "variables": {
        "host": {
          "default": "api.smartsurvey.io",
          "description": "The regional hostname for your account.",
          "enum": [
            "api.smartsurvey.io",
            "api-eu.smartsurvey.io",
            "api-us.smartsurvey.io"
          ]
        }
      }
    }
  ],
  "paths": {
    "/file-library/files": {
      "get": {
        "tags": [
          "FileLibraries"
        ],
        "summary": "Get All Files",
        "description": "Gets all files for your account with paging",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "The 1-based page number",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "description": "The number of results you want up to 100",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "sort_by",
            "in": "query",
            "description": "Optional list of properties that you want to sort by",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SmartSurvey.Public.API.Helpers.PaginatedListCabinetFileResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SmartSurvey.Public.API.Helpers.PaginatedListCabinetFileResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SmartSurvey.Public.API.Helpers.PaginatedListCabinetFileResponse"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/SmartSurvey.Public.API.Helpers.PaginatedListCabinetFileResponse"
                }
              },
              "text/xml": {
                "schema": {
                  "$ref": "#/components/schemas/SmartSurvey.Public.API.Helpers.PaginatedListCabinetFileResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "SmartSurvey.Public.API.Helpers.PaginatedListCabinetFileResponse": {
        "type": "object",
        "properties": {
          "records": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SmartSurvey.Public.API.Models.FileLibraries.CabinetFileResponse"
            },
            "description": "Gets or sets the results.",
            "nullable": true,
            "readOnly": true
          },
          "page_index": {
            "type": "integer",
            "description": "Gets or sets the index of the page.",
            "format": "int32",
            "readOnly": true
          },
          "pages": {
            "type": "integer",
            "description": "Gets or sets the total pages.",
            "format": "int32",
            "readOnly": true
          },
          "page_size": {
            "type": "integer",
            "description": "Gets or sets the size of the page.",
            "format": "int32",
            "readOnly": true
          },
          "total": {
            "type": "integer",
            "description": "Gets or sets the total number of records.",
            "format": "int32",
            "readOnly": true
          }
        },
        "additionalProperties": false,
        "description": "Paginated List helper copied from API Core and tweaked for new API"
      },
      "SmartSurvey.Public.API.Models.FileLibraries.CabinetFileResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "The unique id for the File",
            "format": "int32"
          },
          "folder_id": {
            "type": "integer",
            "description": "The id of the folder this file is in",
            "format": "int32"
          },
          "type": {
            "type": "string",
            "description": "The type of resource being requested",
            "nullable": true,
            "readOnly": true
          },
          "title": {
            "type": "string",
            "description": "The file title",
            "nullable": true
          },
          "date_created": {
            "type": "string",
            "description": "The date that the file was created in UTC",
            "format": "date-time"
          },
          "url": {
            "type": "string",
            "description": "A url link for this file",
            "nullable": true
          },
          "href": {
            "type": "string",
            "description": "A unique API link for this resource",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "DTO object for CabinetFile Response"
      }
    },
    "securitySchemes": {
      "Basic": {
        "type": "http",
        "description": "Basic Authorization",
        "scheme": "basic"
      }
    }
  },
  "security": [
    {
      "Basic": []
    }
  ]
}
```