> ## Documentation Index
> Fetch the complete documentation index at: https://developers.formstack.com/llms.txt
> Use this file to discover all available pages before exploring further.

# /folders

Get all folders on your account and their subfolders.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Formstack API v2025.0",
    "version": "0.0.4"
  },
  "servers": [
    {
      "url": "https://www.formstack.com/api/v2025",
      "description": "Production server"
    },
    {
      "url": "https://staging-formstack.com/api/v2025",
      "description": "Staging server"
    },
    {
      "url": "https://dev-formstack.com/api/v2025",
      "description": "Development server"
    }
  ],
  "paths": {
    "/folders": {
      "get": {
        "tags": [
          "Folders",
          "Classic"
        ],
        "description": "Get all folders on your account and their subfolders.",
        "operationId": "listFolders",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "Page to use when paginating through folders. Starts at 1.",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "perPage",
            "in": "query",
            "description": "Number of folders to return per page. Minimum page limit is 10.",
            "required": false,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FoldersListingApiDto"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "FolderPreviewApiDto": {
        "title": "Folder Preview",
        "description": "Folder preview response",
        "properties": {
          "id": {
            "description": "ID of the folder",
            "type": "integer",
            "nullable": false
          },
          "name": {
            "description": "Name of the folder",
            "type": "string",
            "nullable": false
          }
        },
        "type": "object"
      },
      "FoldersListingApiDto": {
        "title": "Folders Listing",
        "description": "Folders listing response",
        "properties": {
          "page": {
            "$ref": "#/components/schemas/PaginationApiDto"
          },
          "folders": {
            "description": "Previews of folders in list",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FolderPreviewApiDto"
            },
            "nullable": true
          }
        },
        "type": "object"
      },
      "PaginationApiDto": {
        "title": "Pagination Info",
        "description": "Pagination information",
        "properties": {
          "size": {
            "description": "The amount of records returned for this page",
            "type": "integer",
            "nullable": false
          },
          "pageNumber": {
            "description": "The current page number",
            "type": "integer",
            "nullable": false
          },
          "pageSize": {
            "description": "The actual page size",
            "type": "integer",
            "nullable": false
          },
          "totalElements": {
            "description": "The total amount of resources available",
            "type": "integer",
            "nullable": false
          },
          "totalPages": {
            "description": "The total amount of pages available, based on the pageSize",
            "type": "integer",
            "nullable": false
          }
        },
        "type": "object"
      }
    }
  },
  "tags": [
    {
      "name": "Folders",
      "description": "Folders organize the forms in an account. Use these endpoints to list folders, retrieve a folder, and create, rename, or delete folders. The API exposes a single level of nesting (a folder and its direct subfolders)."
    },
    {
      "name": "Classic",
      "description": "Classic"
    }
  ]
}
```