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

# Download a rendered QR Code image

> POST /qr/download/

Turns QR data your client has already rendered into a downloadable file.

```
POST   https://api.scanova.io/qr/download/
Authorization: 401f7ac837da42b97f613d789819ff93537bee6a
```

Requires the `QR_CODE_CAN_DOWNLOAD` role permission, plus `RASTER_EXPORTING` quota for `png`/`jpg`/`jpeg` or `VECTOR_EXPORTING` quota for `pdf`/`eps`/`svg`/`ps`.

<ParamField body="name" type="string">
  Base filename for the download. Falls back to the QR Code's identifier.
</ParamField>

<ParamField body="data" type="string" required>
  The rendered QR Code — a base64 raster payload or SVG markup.
</ParamField>

<ParamField body="qrid" type="string">
  Optional source QR Code. **Required** when `for_print` is `true`.
</ParamField>

<ParamField body="size" type="integer" default="300">
  Output size in pixels.
</ParamField>

<ParamField body="for_print" type="boolean" default="false">
  Produce a print-ready output. Requires `qrid`.
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X POST "https://api.scanova.io/qr/download/" \
    -H "Authorization: 401f7ac837da42b97f613d789819ff93537bee6a" \
    -H "Content-Type: application/json" \
    -d '{
        "name": "Summer Sale Landing",
        "data": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0i...",
        "size": 600
    }'
  ```
</RequestExample>

<Warning>
  The success response is a **binary file**, not JSON — it comes back with `Content-Disposition: attachment` and the format implied by `data`. Write it straight to disk (`-o file.svg` with cURL); don't try to parse it. Nothing is stored server-side, so there is no URL to fetch it again later.
</Warning>

## Related

* [Download many rendered QR Code images](/api-reference/management-api/qr/download-multi) — the same operation for a batch, returned as a ZIP.
* [Download a QR Code image](/api-reference/management-api/qr/download-image) — let the server render the QR Code from its stored data instead.
* [Export QR Codes](/api-reference/management-api/qr/export) — an asynchronous, emailed export for large selections.
* [Check scannability](/api-reference/management-api/qr/scan-check) — verify a rendered design before downloading it.
* [QR Manager overview](/api-reference/management-api/qr/overview) — the quotas, role permissions, and Trash model shared by every endpoint in this module.
* [Management API overview](/api-reference/management-api/overview) — the auth scheme and quota rules that apply to this endpoint.


## OpenAPI

````yaml api-reference/openapi/management-api.json POST /qr/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:
  /qr/download/:
    post:
      summary: Download a rendered QR image
      description: >-
        Converts already-rendered QR data (base64 raster or SVG markup) into a
        downloadable file. Returns a BINARY response with Content-Disposition:
        attachment — not JSON. Nothing is persisted server-side. Requires
        QR_CODE_CAN_DOWNLOAD plus RASTER_EXPORTING (png/jpg/jpeg) or
        VECTOR_EXPORTING (pdf/eps/svg/ps) quota. `for_print: true` additionally
        requires `qrid`.
      operationId: downloadRenderedQrCode
      requestBody:
        content:
          application/json:
            example:
              name: Summer Sale Landing
              data: data:image/svg+xml;base64,PHN2ZyB4bWxucz0i...
              size: 600
      responses:
        '200':
          description: The rendered file, as a binary attachment.
        '400':
          description: >-
            `data` missing or undecodable, or `for_print: true` sent without
            `qrid`.
        '403':
          description: >-
            RASTER_EXPORTING / VECTOR_EXPORTING quota exhausted, or the role
            lacks QR_CODE_CAN_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.

````