Skip to main content
POST
/
qr
Generate QR code (POST)
curl --request POST \
  --url https://pref.rio/link/api/qr \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "background_color": "#FFFFFF",
  "border_width": 2,
  "data": "https://example.com",
  "error_correction": "high",
  "foreground_color": "#000000",
  "format": "png",
  "include_logo": true,
  "logo_color": "#FF5733",
  "logo_shape": "circle",
  "module_shape": "square",
  "size": 512,
  "transparent_background": false
}'
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.

Body

application/json

QR code generation request

data
string
required
Example:

"https://example.com"

background_color
string
Example:

"#FFFFFF"

border_width
integer
Example:

2

error_correction
string
Example:

"high"

foreground_color
string
Example:

"#000000"

format
string
Example:

"png"

Example:

true

logo_color
string
Example:

"#FF5733"

logo_shape
string
Example:

"circle"

module_shape
string
Example:

"square"

size
integer
Example:

512

transparent_background
boolean
Example:

false

Response

QR code image

The response is of type file.