QR code
Generate the QR code of a page, as SVG or PNG.
Endpoints
GET/qr-codeGet QR codecurl "https://app.hopla.page/api/v2/qr-code?format=png&size=1200" \
-H "Authorization: Bearer $HOPLA_API_KEY" -o qr-hopla.png| Parameter | Values |
|---|---|
format | svg (default), scalable without quality loss for print, or png |
size | Size in pixels, from 120 to 2000; default 720 |
The QR code points to the public page URL (the custom domain, if any), followed by ?s=qr: scans are counted separately, as the "QR code" source, in analytics.
The MCP server returns it as an image (get_qr_code).