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

# 列出文件夹

> GET /folder/

文件夹用于对二维码进行归类整理——与仪表盘 **QR Codes > Folders** 侧边栏中展示的文件夹相同。使用此端点可以列出账户的文件夹，或从您自己的系统中创建新文件夹。

<Note>
  两个操作都需要一个拥有 `MANAGEMENT_API`（或 `MANAGEMENT_API_SANDBOX`）配额的 Management API 密钥，以原始 `Authorization` 请求头的值发送。身份验证细节请参见 [Management API 概览](/zh/api-reference/management-api/overview)。
</Note>

<RequestExample>
  ```bash cURL theme={null}
  curl --request GET \
    --url 'https://management.scanova.io/folder/' \
    --header 'Authorization: YOUR_API_KEY'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "count": 2,
    "next": null,
    "previous": null,
    "results": [
      {
        "id": 41,
        "name": "Product Launch",
        "color": "#4F6BF4",
        "created_by": 1029,
        "folder_type": "qr",
        "qr_codes_count": 12,
        "created": "2026-07-01T09:12:04.221000+05:30",
        "updated": "2026-07-14T16:03:11.884000+05:30"
      },
      {
        "id": 40,
        "name": "Retail Campaign",
        "color": null,
        "created_by": 1029,
        "folder_type": "qr",
        "qr_codes_count": 0,
        "created": "2026-06-18T11:45:32.009000+05:30",
        "updated": "2026-06-18T11:45:32.009000+05:30"
      }
    ]
  }
  ```
</ResponseExample>

结果按分页返回（默认每页 10 条，通过 `page_size` 最多可设为 100 条），并按最新创建排序。

<ParamField query="page" type="integer">
  要获取的页码。
</ParamField>

<ParamField query="page_size" type="integer" default="10">
  每页返回的文件夹数量，最大为 100。
</ParamField>

<ParamField query="folder_type" type="string">
  筛选为 `qr`（标准二维码文件夹）或 `page`（限定于页面构建器页面的文件夹）。
</ParamField>

<ParamField query="search" type="string">
  对文件夹名称进行不区分大小写的子字符串匹配。
</ParamField>

### 响应字段

<ResponseField name="id" type="integer">
  文件夹 ID——按文件夹筛选二维码分析数据时作为 `folder` 值传入，或在仪表盘中将二维码移动到该文件夹时使用。
</ResponseField>

<ResponseField name="name" type="string">
  文件夹名称。在同一账户内、同一 `folder_type` 下唯一。
</ResponseField>

<ResponseField name="color" type="string | null">
  在侧边栏中文件夹旁显示的十六进制颜色值（例如 `#4F6BF4`），未设置时为 `null`。
</ResponseField>

<ResponseField name="created_by" type="integer | null">
  创建该文件夹的用户 ID——如果该用户后来已从账户中移除，则为 `null`。
</ResponseField>

<ResponseField name="folder_type" type="string">
  `qr` 或 `page`。
</ResponseField>

<ResponseField name="qr_codes_count" type="integer">
  当前分配到此文件夹的二维码数量。
</ResponseField>

<ResponseField name="created" type="string">
  ISO 8601 格式的创建时间戳。
</ResponseField>

<ResponseField name="updated" type="string">
  ISO 8601 格式的最后更新时间戳。
</ResponseField>

## 相关内容

* [创建文件夹](/zh/api-reference/management-api/folders/create) — 同一端点的另一个操作。
* [标签管理](/zh/api-reference/management-api/tags/manage) —— 另一种二维码归类整理机制，可与文件夹配合（或替代文件夹）使用。
* [列出 / 创建二维码](/zh/api-reference/management-api/qr/list) —— 通过此处返回的文件夹 ID，以 `?folder=` 筛选二维码。
* [Management API 概览](/zh/api-reference/management-api/overview) —— 本端点所属的身份验证方案与配额架构。


## OpenAPI

````yaml api-reference/openapi/management-api.json GET /folder/
openapi: 3.1.0
info:
  title: Scanova Management API (v2)
  description: >-
    The complete Scanova Management API — every endpoint available at
    management.scanova.io (QR codes, folders, tags, leads, forms, analytics,
    plans, shared users & roles), plus the token-creation and usage-stats
    endpoints used to authenticate against it. Every path and request/response
    shape below was verified live against a real API key and the actual running
    backend (Phase 7, 2026-08-16) — not guessed from reading urls.py alone.
  version: 2.0.0
servers:
  - url: https://management.scanova.io
    description: Management API — QR/folder/tag/lead/form/analytics/plans endpoints
security:
  - apiKeyAuth: []
paths:
  /folder/:
    get:
      summary: List folders
      operationId: listManagedFolders
      responses:
        '200':
          description: List of folders
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: >-
        Send your Management API key as the raw value of the Authorization
        header — no "Bearer " or "Token " prefix, and no other characters.
        Example: `Authorization: 401f7ac837da42b97f613d789819ff93537bee6a`. A
        header containing more than one space-separated part is rejected
        outright. Requests also require the request's Host header to be the
        management API host (e.g. management.scanova.io) — the same key sent to
        the regular API host will not authenticate.

````