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

# Download Category Samples (ZIP)

> Download multiple sample files of the specified category, packaged as a ZIP file. When sample_ids is not provided, all samples are downloaded.



## OpenAPI

````yaml /docflow-global/en/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, providing file upload and file processing result retrieval
    capabilities
  version: 2.8.4
servers:
  - url: https://docflow.textin.ai
security:
  - ApiId: []
    SecretCode: []
paths:
  /api/app-api/sip/platform/v2/category/sample/batch_download:
    post:
      tags:
        - File Category Samples
      summary: Download Category Samples (ZIP)
      description: >-
        Download multiple sample files of the specified category, packaged as a
        ZIP file. When sample_ids is not provided, all samples are downloaded.
      operationId: batchDownloadCategorySample
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                workspace_id:
                  type: string
                  description: Workspace ID
                  example: '1234567890'
                category_id:
                  type: string
                  description: File category ID
                  example: '1234567890'
                sample_ids:
                  type: array
                  description: >-
                    List of sample IDs to download. When not provided, all
                    samples of this category are downloaded.
                  items:
                    type: string
                  example:
                    - '1234567890'
                    - 987654321
              required:
                - workspace_id
                - category_id
      responses:
        '200':
          description: Successfully downloaded sample ZIP file
          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

````