Links
Retrieve a QR code
Retrieve a QR code for a link.
GET
/
qr
Query Parameters
url
string
requiredThe URL to generate a QR code for.
logo
string
The logo to include in the QR code. Can only be used with a paid plan on Dub.co.
size
number
default: 600The size of the QR code in pixels. Defaults to 600
if not provided.
level
enum<string>
default: LThe level of error correction to use for the QR code. Defaults to L
if not provided.
Available options:
L
, M
, Q
, H
fgColor
string
default: #000000The foreground color of the QR code in hex format. Defaults to #000000
if not provided.
bgColor
string
default: #FFFFFFThe background color of the QR code in hex format. Defaults to #ffffff
if not provided.
hideLogo
boolean
default: falseWhether to hide the logo in the QR code. Can only be used with a paid plan on Dub.co.
includeMargin
boolean
default: falseWhether to include a margin around the QR code. Defaults to false
if not provided.
Response
200 - image/png
The response is of type string
.
Was this page helpful?