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

# 下载类别样本（ZIP）

> 下载指定类别的多个样本文件，打包为 ZIP 格式返回。不传 sample_ids 时下载全部样本。



## OpenAPI

````yaml /docflow/cn/rest-api/openapi.bundle.yaml post /api/app-api/sip/platform/v2/category/sample/batch_download
openapi: 3.0.0
info:
  title: DocFlow API
  description: DocFlow REST API，提供文件上传和获取文件处理结果能力
  version: 2.8.4
servers:
  - url: https://docflow.textin.com
security:
  - ApiId: []
    SecretCode: []
paths:
  /api/app-api/sip/platform/v2/category/sample/batch_download:
    post:
      tags:
        - 文件类别样本
      summary: 下载类别样本（ZIP）
      description: 下载指定类别的多个样本文件，打包为 ZIP 格式返回。不传 sample_ids 时下载全部样本。
      operationId: batchDownloadCategorySample
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                workspace_id:
                  type: string
                  description: 空间ID
                  example: '1234567890'
                category_id:
                  type: string
                  description: 文件类别ID
                  example: '1234567890'
                sample_ids:
                  type: array
                  description: 要下载的样本ID列表。不传时下载该类别全部样本。
                  items:
                    type: string
                  example:
                    - '1234567890'
                    - 987654321
              required:
                - workspace_id
                - category_id
      responses:
        '200':
          description: 成功下载样本 ZIP 文件
          content:
            application/zip:
              schema:
                type: string
                format: binary
components:
  securitySchemes:
    ApiId:
      type: apiKey
      in: header
      name: x-ti-app-id
    SecretCode:
      type: apiKey
      in: header
      name: x-ti-secret-code

````