Retrieve a QR code
Retrieve a QR code for a link.
1 min read
get/qr
Request example
Response
get/qr
Query parameters
The logo to include in the QR code. Can only be used with a paid plan on Dub.
The level of error correction to use for the QR code. Defaults to
L if not provided.Default: "L"
Options:
LMQHThe foreground color of the QR code in hex format. Defaults to
#000000 if not provided.Default: "#000000"
The background color of the QR code in hex format. Defaults to
#ffffff if not provided.Default: "#FFFFFF"
Whether to hide the logo in the QR code. Can only be used with a paid plan on Dub.
Default: false
DEPRECATED: Margin is included by default. Use the
margin prop to customize the margin size.Default: true
Responses
image/png
The QR code