API v1
Content
Options
Generated API URL
↗ Open
Endpoint
GET https://qr.cenloyalty.com/v1/create-qr-code/
Parameters
ParamTypeDefaultDescription
datastringURL-encoded content. Required.
sizeWxH300x300e.g. 300x300, max 2048x2048
eccL/M/Q/HMError correction level
colorhex000000Dark module color (no #)
bgcolorhexffffffBackground color (no #)
marginint4Quiet zone in modules (0–10)
formatpng/svgpngOutput format
Examples

Basic:

https://qr.cenloyalty.com/v1/create-qr-code/?data=https%3A%2F%2Fcenloyalty.com

Custom color, SVG, high EC:

https://qr.cenloyalty.com/v1/create-qr-code/?data=https%3A%2F%2Fcenloyalty.com&size=512x512&format=svg&color=1a6ef5&bgcolor=e8f0fe&ecc=H

HTML img tag:

<img src="https://qr.cenloyalty.com/v1/create-qr-code/?data=https%3A%2F%2Fcenloyalty.com&size=300x300" alt="QR code" width="300" height="300" />

Health check:

GET https://qr.cenloyalty.com/health
Response

Returns the image binary directly with Content-Type: image/png or image/svg+xml and Cache-Control: public, max-age=86400.

Rate limit

120 requests per minute per IP. Exceeding returns 429 Too Many Requests.

Live preview
Loading…