QR Codes

Generate QR code image

Generate a customizable QR code as a PNG image with support for custom colors, sizes, error correction levels, and optional logo overlays.

get/qr

Request

  • Base URL
    https://api.session.services
  • Auth
    API key in header x-tenant-id

Query parameters

value, string required
Example:https://session.services

The value to encode in the QR code

format, 'png' | 'svg'
Example:png

Output image format

size, integer
Example:600

Size of the output image in pixels

ecLevel, 'L' | 'M' | 'Q' | 'H'
Example:M

Error correction level (L=7%, M=15%, Q=25%, H=30%)

quietZone, integer
Example:1

Quiet zone (margin) around QR code

bgColor, string
Example:#ffffff

Background color (hex format)

fgColor, string
Example:#000000

Foreground color (hex format)

logoImage, string uri
Example:https://assets.session.services/logo.png

URL of logo image to overlay on the QR code

logoWidth, integer
Example:300

Logo width in pixels

logoHeight, integer
Example:300

Logo height in pixels

logoOpacity, integer
Example:100

Logo opacity (0-100)

logoRemoveBg, boolean

Add background behind logo to improve visibility

Response

Successfully generated QR code image

Changes

No recorded changes to this operation across all 1063 revisions of this API.