POST /v1/codes/qr-styled

Styled QR code

Rounded or dotted modules, a colour gradient, and distinct corner eyes — still scans everywhere.

Make a QR code that looks designed now No key, no code — 2 credits either way.

curl -X POST "$DOATHING_API/v1/codes/qr-styled" \
  -H "x-api-key: $DOATHING_KEY" \
  -H "content-type: application/json" \
  -d '{"text": "https://doathing.com", "options": {"module_style": "rounded", "gradient_from": "#C15F3C", "gradient_to": "#1A3A5A", "eye_colour": "#C15F3C"}}'

Rounded or dotted modules, a colour gradient, and distinct corner eyes — still scans everywhere.

Generate a QR code with rounded or dot modules, gradient fills and independently coloured finder eyes.

Response

The result carries your remaining balance alongside it, so you can track spend without a second call.

{
  "version": 2,
  "modules": 25,
  "module_style": "rounded",
  "gradient": [
    "#C15F3C",
    "#1A3A5A"
  ],
  "request_id": "37f01edb-0163-42a1-ac51-0acaef979800",
  "credits_remaining": 96
}

Cost

2 credits per call, whether it is run from the site or from the API — the credential differs, the price does not. A new account starts with 20 credits.

A rejected request still costs a credit: the authorizer decrements before the tool validates. A call rejected for a missing or invalid key is free.

Parameters

Generated from the endpoint’s own validation, so this is exactly what it accepts. A body field goes at the top level; an option goes inside options.

NameInTypeDefaultNotes
text *bodystring
module_styleoptionsstring"rounded"square, rounded or dot. one of square, rounded, dot
error_correctionoptionsstring"Q"one of L, M, Q, H
scaleoptionsinteger12Pixels per module. 4 to 40
borderoptionsinteger40 to 20
gradient_fromoptionsstring#RRGGBB at the top-left of a gradient.
gradient_tooptionsstring#RRGGBB at the bottom-right.
eye_colouroptionsstring#RRGGBB for the three corner finder patterns.
darkoptionsstring"#000000"
lightoptionsstring"#FFFFFF"