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

# Formularantworten exportieren

> POST /forms/export/

Lädt Formularantworten als CSV- oder Excel-Datei herunter — entweder für ein Formular oder für alle Formulare, die mit einer Reihe von QR-Codes verknüpft sind.

<Note>
  Erfordert einen Management-API-Schlüssel mit `MANAGEMENT_API`- (oder `MANAGEMENT_API_SANDBOX`-)Quota und die Berechtigung `LEAD_GENERATION_ENTRY_CAN_VIEW`, gesendet als roher `Authorization`-Header-Wert — siehe die [Übersicht über die Management API](/de/api-reference/management-api/overview).
</Note>

<ParamField body="form_id" type="string">
  Exportiert die Antworten eines Formulars, mit seinem eigenen Fragenschema als Spaltenüberschriften. Schließt sich gegenseitig mit `qr_ids` aus.
</ParamField>

<ParamField body="qr_ids" type="array">
  Exportiert Antworten über alle Formulare (und umgewandelten Lead-Listen), die mit diesen QR-`qrid`s verknüpft sind — Fragen aus mehreren Formularen werden zu kombinierten Spalten zusammengeführt. Schließt sich gegenseitig mit `form_id` aus.
</ParamField>

<ParamField query="file_format" type="string" default="xls">
  `csv`, `xls` oder `xlsx`.
</ParamField>

<ParamField query="from" type="string">
  Nur Antworten, die an oder nach diesem Datum erstellt wurden (`YYYY-MM-DD`).
</ParamField>

<ParamField query="to" type="string">
  Nur Antworten, die an oder vor diesem Datum erstellt wurden (`YYYY-MM-DD`).
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl --request POST \
    --url 'https://api.scanova.io/forms/export/?file_format=csv&from=2026-08-01&to=2026-08-31' \
    --header 'Authorization: YOUR_API_KEY' \
    --header 'Content-Type: application/json' \
    --data '{ "form_id": "F8a9b0c1d2e3f4g5h" }' \
    --output responses.csv
  ```
</RequestExample>

Die Antwort ist ein Datei-Download (`Content-Type: text/csv`, oder der XLS/XLSX-MIME-Typ), kein JSON, mit `Content-Disposition: attachment`. Die Spalten sind `Tracking ID, QR Code, Created, Skip, Source`, eine Spalte pro Frage, dann acht Tracking-Abschlussspalten: `Scan Time, Scan Day, Device Type, City, Country Code, Country Name, Postal Code, Region`.

`400`, wenn sowohl `form_id` als auch `qr_ids` angegeben werden oder keines von beiden:

```json 400 theme={null}
{ "detail": "form_id and qr_ids are mutually exclusive" }
```

```json 400 theme={null}
{ "detail": "Either form_id or qr_ids is required" }
```

`400`, wenn `file_format` nicht `csv`, `xls` oder `xlsx` ist:

```json 400 theme={null}
{ "detail": "Unknown file format" }
```

## Verwandte Themen

* [Formularantworten auflisten](/de/api-reference/management-api/forms/responses-list) — das JSON-Äquivalent für ein einzelnes Formular, mit Filtern.
* [Formularanalysen abrufen](/de/api-reference/management-api/forms/analytics) — aggregierte Zahlen statt Rohdatenzeilen.
* [Übersicht über die Management API](/de/api-reference/management-api/overview) — das Authentifizierungsschema und die Quota-Architektur, zu der dieser Endpunkt gehört.


## OpenAPI

````yaml api-reference/openapi/management-api.json POST /forms/export/
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:
  /forms/export/:
    post:
      summary: Export form responses
      operationId: exportManagedFormResponses
      responses:
        '200':
          description: CSV or XLSX file download.
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.

````