← Back to catalog
qrserver.generate
mock data$0.001 / callQR Code Generate
Generate a QR code image URL from text or URL — customizable size, color, background, format (PNG/SVG), error correction level. Returns direct image URL (goqr.me)
Input schema
ecc
stringError correction level: L (7%), M (15%), Q (25%), H (30%) — higher allows more damage tolerance (default: "L")
datarequired
stringText or URL to encode into a QR code (required)
size
stringImage size in WxH pixels, e.g. "200x200", "400x400" (default: "200x200")
color
stringForeground color as 6-digit hex without #, e.g. "000000" for black (default: "000000")
format
stringImage format: "png" or "svg" (default: "png")
margin
integerQuiet zone margin in modules around the QR code (default: 1)
bgcolor
stringBackground color as 6-digit hex without #, e.g. "ffffff" for white (default: "ffffff")
Call via REST
curl -X POST https://unifyapi.pro/api/call/qrserver.generate \
-H "Authorization: Bearer uak_live_..." \
-H "Content-Type: application/json" \
-d '{"ecc":"<ecc>","data":"<data>","size":"<size>","color":"<color>","format":"<format>","margin":0,"bgcolor":"<bgcolor>"}'