Images

QR code (PNG or SVG)

Turns a link or any text (max 1500 characters) into a QR code.

Costs 1 credit per call.

post/qr

Request

  • Base URL: https://api.cofferdock.com
  • URL: https://api.cofferdock.com/qr
  • Auth: API key in header x-api-key

Request body

datastring required

The link or text to encode. "url" and "text" are accepted as aliases.

sizeinteger

Side in pixels.

margininteger

Quiet zone, in modules.

format'png' | 'svg'

Image format: "png" (default) or "svg" (vector: scales without losing quality).

darkstring

Colour of the dots.

lightstring

Background colour.

ecc'L' | 'M' | 'Q' | 'H'

Error correction level.

output'json' | 'binary' | 'url' | 'image'

How to return the image: "json" (base64 in the JSON response), "binary" (the image itself, ready for n8n/Make/Zapier) or "url" (a temporary download link, valid 15 minutes). Default: json when the request is JSON, binary when the input was sent raw.

Response

The resulting image (shape depends on output).

OR

Changes

No recorded changes to this operation across all 1 revision of this API.