v1

latestOpenAPI 3.0.12026-08-041826100.3 KB

Download a QR code asset via Netlify Function

get/.netlify/functions/generate-qr

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

All 18 operations