> ## 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 /qr-assets/category-template/

在 **Management API** 主机（`api.scanova.io`）上列出按 QR 分类划分的共享预定义设计模板目录。

```
GET https://api.scanova.io/qr-assets/category-template/
Authorization: 401f7ac837da42b97f613d789819ff93537bee6a
```

<Warning>
  此端点不需要 Management API 密钥——它有意向匿名调用者开放（面向 Publish Panel 模板库的访客访问）。该数据集是一个共享的、非个性化的目录，不与任何账户绑定，因此没有需要保护的用户特定内容。
</Warning>

<ParamField query="category_slug" type="string">
  过滤某个 QR 分类的模板，例如 `website-url`。
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl "https://api.scanova.io/qr-assets/category-template/?category_slug=website-url"
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  [
    {
      "id": 21,
      "name": "Ocean Blue",
      "template_id": "cat-tpl-21",
      "category_slug": "website-url",
      "pattern_info": "{\"dotStyle\":\"round\"}",
      "image": "https://cdn.scanova.io/upload/category-templates/21.png",
      "created": "2026-01-15T08:00:00Z"
    }
  ]
  ```
</ResponseExample>

## 不分页

响应是一个纯 JSON 数组，而非本模块其他所有列表端点使用的常规 `{count, next, previous, results}` 信封——完整的匹配结果集在一次响应中全部返回。

## 相关内容

* [列出 QR 码设计模板](/zh/api-reference/management-api/qr-assets/template-list)——账户拥有的等效端点，该端点会分页。
* [Management API 概览](/zh/api-reference/management-api/overview)——适用于此端点的身份验证方案和配额规则。


## OpenAPI

````yaml api-reference/openapi/management-api.json GET /qr-assets/category-template/
openapi: 3.1.0
info:
  title: Scanova Management API (v2)
  description: >-
    The complete Scanova Management API — every endpoint available at
    api.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://api.scanova.io
    description: Management API — QR/folder/tag/lead/form/analytics/plans endpoints
security:
  - apiKeyAuth: []
paths:
  /qr-assets/category-template/:
    get:
      summary: List category templates
      description: >-
        A shared, non-personalized catalog of predefined design templates per QR
        category — not scoped to any user, and readable without a Management API
        key (guest Publish Panel access). Pagination is disabled: the full
        matching set is returned in one response, not the usual `{count, next,
        previous, results}` envelope.
      operationId: listCategoryTemplates
      parameters:
        - name: category_slug
          in: query
          required: false
          schema:
            type: string
          description: Filter to templates for one QR category, e.g. `website-url`.
      responses:
        '200':
          description: Plain array of category templates (no pagination envelope).
          content:
            application/json:
              example:
                - id: 21
                  name: Ocean Blue
                  template_id: cat-tpl-21
                  category_slug: website-url
                  pattern_info: '{"dotStyle":"round"}'
                  image: https://cdn.scanova.io/upload/category-templates/21.png
                  created: '2026-01-15T08:00:00Z'
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. api.scanova.io) — the same key sent to the
        regular API host will not authenticate.

````