Skip to main content
GET
/
qr
Generate QR code (GET)
curl --request GET \
  --url https://pref.rio/link/api/qr \
  --header 'Authorization: Bearer <token>'
This response does not have an example.

Authorizations

Authorization
string
header
required

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

Query Parameters

data
string
required

The data to encode in the QR code

size
integer

Output image size in pixels (default: 256, min: 64, max: 2048)

error_correction
string

Error correction level: low, medium, high, highest (default: high)

foreground_color
string

QR code foreground color in hex (default: #000000)

background_color
string

Background color in hex (default: #FFFFFF)

transparent_background
boolean

Make background transparent (default: false)

Include logo in center (default: true)

logo_color
string

Logo color in hex (optional)

logo_shape
string

Logo shape: circle or square (default: circle)

module_shape
string

QR module shape: square, circle, rounded (default: square)

border_width
integer

Border width in modules (default: 2, min: 0, max: 10)

format
string

Output format: png or jpeg (default: png)

Response

QR code image

The response is of type file.