Generate a QR code from any string — URLs, vCard data, plain text. Returns base64-encoded PNG or SVG with configurable scale and colours.
POST /v1/qr/generatePer request| Field | Type | Description |
|---|---|---|
| content* | string | String to encode (max 2048 chars) |
| format | "png" | "svg" | Output format (default: "png") |
| scale | integer | Scale factor 1–40 (default: 10) |
| dark | string | Dark module colour as #rrggbb (default: "#000000") |
| light | string | Light module colour as #rrggbb (default: "#ffffff") |
| Field | Type | Description |
|---|---|---|
| format | string | Output format used: png or svg |
| data | string | Base64-encoded image bytes |
| mime_type | string | MIME type: image/png or image/svg+xml |
Request
{
"content": "https://apidepot.io",
"format": "png",
"scale": 10
}Response
{
"format": "png",
"data": "iVBORw0KGgoAAAANSUhEUgAA...",
"mime_type": "image/png"
}