Skip to main content
GET
Retrieve QR code

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

url
string
required

The URL to generate a QR code for. Anonymous calls encode this destination behind a lora-links.com redirect (so Lora can layer analytics and abuse-blocking on the public flow); authenticated calls (Bearer API key) encode it verbatim.

Maximum string length: 32000
size
integer
default:600

The size of the QR code in pixels (64-2048). Defaults to 600 if not provided.

level
enum<string>
default:L

The 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:#000000

The foreground color of the QR code in hex format. Defaults to #000000 if not provided.

bgColor
string
default:#FFFFFF

The background color of the QR code in hex format. Defaults to #ffffff if not provided.

Whether to hide the Lora logo overlay in the QR code. Requires an authenticated request (Authorization: Bearer …) with an API key on a Basic, Business, or Enterprise plan. Anonymous calls and keys without the removeWatermark capability receive 403 plan_requires_upgrade.

margin
integer
default:2

The size of the margin around the QR code in modules (0-20). Defaults to 2 if not provided.

Response

The QR code as PNG bytes.

The response is of type file.