API Documentation

This page uses the same payload model as the homepage generator and sends requests to https://qrkit.io/api/v1/qr/generate so you can test end-to-end behavior in one place.

Supported Types

Fields for URL

FieldTypeRequired
urlurlyes

cURL Example

curl -X POST https://qrkit.io/api/v1/qr/generate \
  -H "Content-Type: application/json" \
  -d '{"type":"url","payload":{"url":"https://www.example.com"},"design":{"frame":{"enabled":false,"type":"none","text":"","fontFamily":"sans-serif","fontSize":34,"fontWeight":700,"textColor":"#ffffff","backgroundColor":"#000000","qrPadding":24,"paddingX":16,"paddingY":10,"borderRadius":12},"modules":{"shape":"square","color":"#000000","gradient":null},"background":{"color":"#ffffff","transparent":false},"finder":{"style":"square","centerStyle":"square","outerColor":"#000000","innerColor":"#000000","borderColor":"#000000"},"logo":{"enabled":false,"assetId":null,"sizePercent":20,"padding":0,"backgroundColor":"#ffffff","shape":"square","removeBackgroundBehindLogo":true},"quietZone":{"modules":2,"size":16}},"format":"svg","size":512,"errorCorrection":"M"}'

Try the Generate API

Loading...

Supported design JSON keys

The default design example includes the full object shape. Use the reference below to understand which nested keys you can override in `design`.

FieldTypeExampleAllowed valuesWhat it changes
frame.enabledbooleantrue-Shows a CTA frame around the code.
frame.typestring"poster"banner, outline, bag, clapper, phone, clip, poster, classic, badge, orbit, noneSelects the CTA frame preset.
frame.textstring"SCAN ME"-CTA label rendered inside the frame.
frame.fontFamilystring"Space Grotesk"-Font family used for the CTA text.
frame.fontSizenumber34-Controls CTA text scale.
frame.fontWeightnumber800-Controls CTA text weight.
frame.backgroundColorstring"#0f172a"-Frame fill color.
frame.textColorstring"#ffffff"-CTA text color.
frame.qrPaddingnumber24-Spacing between the QR body and the surrounding frame.
frame.paddingXnumber16-Horizontal padding inside the CTA frame.
frame.paddingYnumber12-Vertical padding inside the CTA frame.
frame.borderRadiusnumber12-Corner rounding of the frame.
FieldTypeExampleAllowed valuesWhat it changes
modules.shapestring"dots"square, rounded, dots, morse, diamond, organic, chainSets the QR module shape.
modules.colorstring"#111827"-Primary module color.
modules.gradientobject|null{"from":"#111827","to":"#10b981","direction":"diagonal"}-Optional module gradient.
modules.gradient.fromstring"#111827"-Gradient start color.
modules.gradient.tostring"#10b981"-Gradient end color.
modules.gradient.directionstring"diagonal"top, bottom, left, right, diagonalGradient flow direction across the QR modules.
background.colorstring"#ffffff"-Canvas background color.
background.transparentbooleanfalse-Makes the background transparent.
FieldTypeExampleAllowed valuesWhat it changes
finder.stylestring"double-border"square, rounded, circle, rounded-square, corner-top-left-sharp, corner-mix, sharp-circle-hole, square-hole, double-borderOuter finder shape.
finder.centerStylestring"diamond"square, rounded, circle, rounded-square, corner-top-left-sharp, corner-mix, star, heart, diamondCenter finder shape.
finder.outerColorstring"#111827"-Finder outer ring color.
finder.innerColorstring"#0ea5e9"-Finder center color.
finder.borderColorstring"#111827"-Finder border accent color.
quietZone.sizenumber24-Quiet zone padding around the QR.
quietZone.modulesnumber4-Module-based spacing control.
FieldTypeExampleAllowed valuesWhat it changes
logo.enabledbooleantrue-Turns logo rendering on.
logo.assetIdstring|null"550e8400-e29b-41d4-a716-446655440000"-References an uploaded logo asset by ID.
logo.sizePercentnumber18-Logo size relative to the QR body.
logo.paddingnumber6-Extra space around the logo.
logo.shapestring"circle"circle, squareChooses the logo mask shape.
logo.backgroundColorstring"#ffffff"-Background under the logo.
logo.removeBackgroundBehindLogobooleantrue-Removes QR modules behind the logo.
logoDataUrlstring"data:image/png;base64,..."-Inline PNG/JPG/SVG data URL for direct logo rendering.