> ## 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.

# Télécharger des codes QR en masse

> POST /bulk-operation/download/

Regroupe de nombreux codes QR pour le téléchargement, de manière asynchrone, sur l'hôte de l'**API de gestion** (`api.scanova.io`), authentifié avec votre clé d'API de gestion brute.

```
POST https://api.scanova.io/bulk-operation/download/
Authorization: 401f7ac837da42b97f613d789819ff93537bee6a
```

<ParamField body="name" type="string" required>
  Un libellé pour cette opération, affiché dans [Lister les opérations en masse](/fr/api-reference/management-api/bulk-operation/list).
</ParamField>

<ParamField body="qr_id_list" type="array">
  Identifiants de QR spécifiques à télécharger. Utilisez alternativement `filter`, `search` ou `bulk_op_id`.
</ParamField>

<ParamField body="filter" type="object">
  Un filtre enregistré sélectionnant quels codes QR télécharger, comme alternative à `qr_id_list`.
</ParamField>

<ParamField body="search" type="string">
  Un terme de recherche sélectionnant quels codes QR télécharger, comme alternative à `qr_id_list`. `"all"` sélectionne tous les codes QR possédés.
</ParamField>

<ParamField body="bulk_op_id" type="string">
  Le `operation_id` d'une opération en masse existante — retélécharger les codes QR que cette opération a générés, comme alternative à la sélection par id/filtre/recherche.
</ParamField>

<ParamField body="result_file_format" type="string">
  Le format de téléchargement, par ex. `zip`, `csv`, `xlsx`.
</ParamField>

<ParamField body="result_file_size" type="string">
  La taille d'image pour les images de QR téléchargées, le cas échéant.
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X POST "https://api.scanova.io/bulk-operation/download/" \
    -H "Authorization: 401f7ac837da42b97f613d789819ff93537bee6a" \
    -H "Content-Type: application/json" \
    -d '{
      "name": "Batch download",
      "qr_id_list": ["a1b2c3d4", "e5f6g7h8"],
      "result_file_format": "zip"
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "operation_id": "bo-dl-001",
    "message": ["Your file is being processed. We'll email you once it's ready."]
  }
  ```
</ResponseExample>

Asynchrone — interrogez [Lister les opérations en masse](/fr/api-reference/management-api/bulk-operation/list) pour `status`/`progress`, puis récupérez `result_file`. `400` si aucun code QR ne correspond à la sélection donnée.

## Voir aussi

* [Exporter les codes QR URL propres en CSV](/fr/api-reference/management-api/bulk-operation/qr-list) — une source rapide d'identifiants pour `qr_id_list`.
* [Exécuter une action rapide en masse](/fr/api-reference/management-api/bulk-operation/quick-action) — utilise les mêmes paramètres de ciblage, pour organiser/appliquer un design/supprimer à la place.
* [Lister les opérations en masse](/fr/api-reference/management-api/bulk-operation/list) — attendre l'achèvement.
* [Présentation de l'API de gestion](/fr/api-reference/management-api/overview) — le schéma d'authentification et les règles de quota applicables à cet endpoint.


## OpenAPI

````yaml api-reference/openapi/management-api.json POST /bulk-operation/download/
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/download/:
    post:
      summary: Bulk-download QR codes
      description: >-
        Packages many QR codes' images/data for download, asynchronously. Select
        targets with `qr_id_list`, a saved `filter`, a `search` term (`"all"`
        selects every owned QR), or an existing `bulk_op_id` to re-download that
        operation's generated QR codes.
      operationId: bulkDownloadQrCodes
      requestBody:
        content:
          application/json:
            example:
              name: Batch download
              qr_id_list:
                - a1b2c3d4
                - e5f6g7h8
              result_file_format: zip
      responses:
        '200':
          description: Download packaging started.
          content:
            application/json:
              example:
                operation_id: bo-dl-001
                message:
                  - >-
                    Your file is being processed. We'll email you once it's
                    ready.
        '400':
          description: No matching QR codes found for the given selection.
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.

````