> ## 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 /bulk-operation/sample/{slug}/

在 **Management API** 主机（`api.scanova.io`）上下载某个 QR 分类的示例表格，使用您的原始 Management API 密钥进行身份验证。

```
GET https://api.scanova.io/bulk-operation/sample/{slug}/
Authorization: 401f7ac837da42b97f613d789819ff93537bee6a
```

<ParamField path="slug" type="string" required>
  QR 分类 slug，例如 `vcard`。
</ParamField>

<ParamField query="qrid" type="string">
  对于除 `url` 以外的任何分类，可根据该 QR 自身的字段值构建示例，而非使用通用分类模板——当您希望获得与现有 QR 形状一致的填写表格时很有用。
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl "https://api.scanova.io/bulk-operation/sample/vcard/" \
    -H "Authorization: 401f7ac837da42b97f613d789819ff93537bee6a" \
    -o vcard-sample.csv
  ```
</RequestExample>

响应是 CSV 或 XLSX 文件下载，而非 JSON——其列与[批量生成 QR 码](/zh/api-reference/management-api/bulk-operation/generate)对该分类所期望的列一致。

## 相关内容

* [批量生成 QR 码](/zh/api-reference/management-api/bulk-operation/generate)——此示例表格所服务的端点。
* [验证批量操作文件](/zh/api-reference/management-api/bulk-operation/validate)——在生成前检查填写好的表格。
* [Management API 概览](/zh/api-reference/management-api/overview)——适用于此端点的身份验证方案和配额规则。


## OpenAPI

````yaml api-reference/openapi/management-api.json GET /bulk-operation/sample/{slug}/
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:
  /bulk-operation/sample/{slug}/:
    get:
      summary: Download a sample file
      description: >-
        Downloads a static sample sheet for a QR category, used as the starting
        template for `generate`. Pass `?qrid=` (for any category except `url`)
        to instead build a per-template sample sheet from that QR's own data.
      operationId: getBulkOperationSampleFile
      parameters:
        - name: slug
          in: path
          required: true
          schema:
            type: string
          description: QR category slug, e.g. `vcard`.
        - name: qrid
          in: query
          required: false
          schema:
            type: string
          description: >-
            Build the sample from this QR's own field values instead of the
            generic template.
      responses:
        '200':
          description: Sample file download (CSV or XLSX).
          content:
            text/csv: {}
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.

````