> ## 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 QR Code image

> GET /qr/{qrid}/download/

Renders a stored QR Code as an image file.

```
GET    https://api.scanova.io/qr/{qrid}/download/
Authorization: 401f7ac837da42b97f613d789819ff93537bee6a
```

<ParamField path="qrid" type="string" required>
  The QR Code's `qrid`.
</ParamField>

### Query parameters

<ParamField query="file" type="string" default="png">
  Output format: `png`, `jpg`, `jpeg`, `svg`, `pdf`, `eps`, or `ps`.
</ParamField>

<ParamField query="size" type="integer" default="300">
  Output size in pixels, from `10` to `2400`.
</ParamField>

<ParamField query="for_print" type="boolean" default="false">
  Return a print-ready PDF. This path is generated locally rather than through the generator service, and ignores `file`.
</ParamField>

<ParamField query="info" type="string">
  Pre-computed encode payload override. Dynamic QR Codes never need this — it exists for static categories whose client-side encoding the backend does not independently reproduce.
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl -G "https://api.scanova.io/qr/Qa1b2c3d4e5f6g7h8/download/" \
    -H "Authorization: 401f7ac837da42b97f613d789819ff93537bee6a" \
    -d file=svg \
    -d size=600 \
    -o "summer-sale-landing.svg"
  ```
</RequestExample>

<Warning>
  The response is a **binary file** (`Content-Disposition: attachment`), not JSON.
</Warning>

<Note>
  Except for `for_print`, rendering round-trips to an external QR Code generator service. A `503` therefore means that upstream call failed, not that your request was wrong — retry, and contact support if it persists.
</Note>

## Related

* [Download a rendered QR Code image](/api-reference/management-api/qr/download-rendered) — send your own rendered data instead of rendering server-side.
* [Download a GS1 barcode](/api-reference/management-api/qr/download-gs1-barcode) — the linear barcode form, for GS1 QR Codes.
* [Export QR Codes](/api-reference/management-api/qr/export) — an asynchronous export for large selections.
* [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 GET /qr/{qrid}/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/{qrid}/download/:
    get:
      summary: Download a QR code image
      description: >-
        Renders a stored QR code as an image file. Except for `for_print`,
        rendering round-trips to an external QR generator service, so a 503 here
        means that upstream call failed rather than a client error. Returns a
        binary FileResponse with Content-Disposition: attachment.
      operationId: downloadQrCodeImage
      parameters:
        - name: qrid
          in: path
          required: true
          schema:
            type: string
          description: >-
            The QR code's `qrid` — the opaque public identifier returned by the
            list endpoint, not the numeric `id`.
        - name: size
          in: query
          required: false
          schema:
            type: integer
            default: 300
          description: Output size in pixels, from 10 to 2400.
        - name: for_print
          in: query
          required: false
          schema:
            type: boolean
            default: false
          description: >-
            Return a print-ready PDF, generated locally rather than via the
            generator service.
        - name: file
          in: query
          required: false
          schema:
            type: string
            enum:
              - png
              - jpg
              - jpeg
              - svg
              - pdf
              - eps
              - ps
          description: Output format.
        - name: info
          in: query
          required: false
          schema:
            type: string
          description: >-
            Pre-computed encode payload override, for static categories whose
            client-side encoding the backend does not reproduce.
      responses:
        '200':
          description: The rendered image, as a binary attachment.
        '400':
          description: '`size` out of range, or `file` is not a supported format.'
        '404':
          description: No QR code with this `qrid` owned by this account.
        '503':
          description: >-
            The upstream QR generator service is unreachable. Not a client error
            — retry.
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.

````