QR Code
Generate QR code (simple)
Generate a QR code via query parameters. Returns a raw PNG, SVG, or base64 JSON. Use the POST endpoint for logo overlay.
get/qr/generate
Request
- Base URL: https://api.citoapi.com/api/v1
- URL: https://api.citoapi.com/api/v1/qr/generate
- Auth: API key in header x-api-key
Query parameters
datastring required
Example:https://citoapi.com
Text or URL to encode.
sizeinteger
Output size in pixels.
format'png' | 'svg' | 'base64'
Output format.
fgstring
Example:#000000
Foreground hex color.
bgstring
Example:#ffffff
Background hex color.
margininteger
Quiet zone width (0–10).
ec'L' | 'M' | 'Q' | 'H'
Error correction level.
Response
QR code image (PNG binary or SVG string) or JSON with base64 image.
Example response
{
"success": true,
"data": {
"image": "data:image/png;base64,...",
"format": "png",
"size": 300
}
}Changes
No recorded changes to this operation across all 1 revision of this API.