v1

latestOpenAPI 3.1.0AGPL-3.02026-07-1317522.1 KB

Generate a QR code (query params)

Returns a QR code as SVG or PNG. Encode any text or URL via the data parameter.

get/v1/qr

Query parameters

datastring required

Text or URL to encode.

format'svg' | 'png'
sizeinteger

Pixel size (PNG) or viewBox (SVG).

margininteger
darkstring

Foreground colour as a hex code, e.g. 232E3A.

lightstring

Background colour as a hex code, e.g. FFFFFF.

themestring

A saved theme id or name. Applies the theme's colours/margin (SVG). Explicit dark/light/margin override it.

Response

The rendered QR code.