Generate and verify a QR code asset
Generate one SVG, PNG, JPG, or WebP asset, perform a structural payload review, assess quiet-zone, contrast, and error-correction settings, decode the final generated file with jsQR, compare payload SHA-256 hashes, and return a bounded evidence-linked receipt. Asset bytes are returned only when final-file decoding matches the requested payload. A decode failure returns HTTP 422 with the full receipt and no asset bytes. The receipt does not include the decoded payload. This is not print, device, ISO, accessibility, malware, or security certification.
post/.netlify/functions/generate-verified-qr
Request body
Response
Generated asset whose final-file decode matched the requested payload, plus a bounded verification receipt
Example response
{
"success": true,
"dataUrl": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA...",
"downloadUrl": "/.netlify/functions/generate-qr?value=https%3A%2F%2Fexample.com&format=svg&size=1024",
"contentType": "image/png",
"extension": "png",
"suggestedFilename": "qrcode-example",
"byteLength": 5342,
"dimensions": {
"width": 1024,
"height": 1024,
"unit": "px"
},
"qrOptions": {
"size": 1024,
"margin": 4,
"errorCorrectionLevel": "H"
}
}