Download a QR code asset via Netlify Function

get/.netlify/functions/generate-qr

Request

Query parameters

valuestring required

Text, URL, or payload encoded in the QR code

format'svg' | 'png' | 'jpg' | 'webp' | 'pdf' | 'eps'

Output format for the QR code asset

sizeinteger

Width and height of the generated asset in pixels

margininteger

Quiet-zone margin around the QR code modules

bgColorstring

Background color in hex format, for example #FFFFFF

fgColorstring

Foreground color in hex format, for example #000000

errorCorrectionLevel'L' | 'M' | 'Q' | 'H'

Error correction level for QR encoding

logostring nullable

Optional base64 PNG, JPG, or WebP data URL for an embedded logo

Response

Generated QR code asset served as binary content

Changes

No recorded changes to this operation across all 3 revisions of this API.