n8n

Generate QR Codes in n8n Workflows

HTTP Request Node · No Credentials · No API Key

Overview

The QR Gen API works perfectly with n8n's HTTP Request node. Since the API requires no authentication, you don't need to configure any credentials — just add an HTTP Request node, point it at the API, and you have QR codes in your workflow.

Common use cases for QR codes in n8n workflows:

Basic Setup: HTTP Request Node

Add an HTTP Request node to your workflow with these settings:

SettingValue
MethodGET
URLhttps://qrgenapp.com/api/qr
AuthenticationNone
Response FormatFile

Add query parameters:

NameValue
data{{ $json.url }} (or any expression)
formatpng
size512
ecH

Set Response Format to File so n8n treats the PNG response as a binary file you can pass to email, Slack, Google Drive, or other nodes.

Using POST with JSON Body

For WiFi strings, vCards, or other complex data, switch to POST:

SettingValue
MethodPOST
URLhttps://qrgenapp.com/api/qr
Body Content TypeJSON
Response FormatFile

JSON body:

{
  "data": "WIFI:T:WPA;S:{{ $json.network_name }};P:{{ $json.password }};;",
  "format": "png",
  "size": 512,
  "ec": "H"
}

Example Workflow: Google Sheets to QR Code Email

This workflow reads URLs from a Google Sheet and sends QR codes via email:

  1. Trigger: Schedule Trigger (runs daily) or Google Sheets Trigger (on new row)
  2. Read: Google Sheets node — reads rows with a url and email column
  3. Generate QR: HTTP Request node — calls QR Gen API with {{ $json.url }} as the data parameter, response format set to File
  4. Email: Send Email node — attaches the QR code binary from the previous node

The HTTP Request node configuration:

{
  "method": "GET",
  "url": "https://qrgenapp.com/api/qr",
  "qs": {
    "data": "={{ $json.url }}",
    "format": "png",
    "size": "512",
    "ec": "H"
  },
  "responseFormat": "file"
}

Example Workflow: Invoice to UPI QR Code

Automatically generate a UPI payment QR when an invoice is created:

  1. Trigger: Webhook node (receives invoice data from your billing system)
  2. Build UPI URI: Set node — creates the UPI string: upi://pay?pa={{ $json.upi_id }}&pn={{ $json.business_name }}&am={{ $json.amount }}
  3. Generate QR: HTTP Request node — sends the UPI URI to QR Gen API
  4. Send: WhatsApp / Email / Slack node — delivers the QR code to the customer

SVG Output for Web Embedding

If you need to embed QR codes in HTML emails or web pages, request SVG format instead:

{
  "data": "https://example.com",
  "format": "svg",
  "size": 256,
  "color": "1a1a1a"
}

Set the response format to Text (not File) when using SVG, since the response is an XML string you can embed directly in HTML.

Tips

See the full API Reference for all parameters.

Add QR codes to your n8n workflows

No credentials needed. Just add an HTTP Request node and go.

Full API Reference