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

# Exportar respuestas de formulario

> POST /forms/export/

Descarga respuestas de formulario como un archivo CSV o Excel — ya sea para un formulario, o en todos los formularios vinculados a un conjunto de códigos QR.

<Note>
  Requiere una clave de API de gestión con cuota `MANAGEMENT_API` (o `MANAGEMENT_API_SANDBOX`) y el permiso `LEAD_GENERATION_ENTRY_CAN_VIEW`, enviada como el valor sin procesar del encabezado `Authorization` — consulte el [resumen de la API de gestión](/es/api-reference/management-api/overview).
</Note>

<ParamField body="form_id" type="string">
  Exporta las respuestas de un formulario, con su propio esquema de preguntas como encabezados de columna. Se excluye mutuamente con `qr_ids`.
</ParamField>

<ParamField body="qr_ids" type="array">
  Exporta respuestas de todos los formularios (y listas de leads convertidas) vinculados a estos `qrid` de QR — las preguntas de varios formularios se combinan en columnas unificadas. Se excluye mutuamente con `form_id`.
</ParamField>

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

<ParamField query="from" type="string">
  Solo respuestas creadas en o después de esta fecha (`YYYY-MM-DD`).
</ParamField>

<ParamField query="to" type="string">
  Solo respuestas creadas en o antes de esta fecha (`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>

La respuesta es una descarga de archivo (`Content-Type: text/csv`, o el tipo MIME de XLS/XLSX), no JSON, con `Content-Disposition: attachment`. Las columnas son `Tracking ID, QR Code, Created, Skip, Source`, una columna por pregunta, y luego ocho columnas finales de seguimiento: `Scan Time, Scan Day, Device Type, City, Country Code, Country Name, Postal Code, Region`.

`400` si se proporcionan tanto `form_id` como `qr_ids`, o ninguno de los dos:

```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` si `file_format` no es `csv`, `xls` ni `xlsx`:

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

## Relacionado

* [Listar respuestas de formulario](/es/api-reference/management-api/forms/responses-list) — el equivalente en JSON para un único formulario, con filtros.
* [Obtener analíticas de formulario](/es/api-reference/management-api/forms/analytics) — números agregados en lugar de filas sin procesar.
* [Resumen de la API de gestión](/es/api-reference/management-api/overview) — el esquema de autenticación y la arquitectura de cuotas a la que pertenece este endpoint.


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

````