Properties
| Name | Type | Description |
|---|---|---|
| data | string | Text or URL to encode into the QR code. |
| size | integer | Output image size in pixels (width = height). |
| format | string | Output format. |
| foreground | string | Foreground (dark module) hex color. |
| background | string | Background hex color. |
| margin | integer | Quiet zone width in modules. |
| errorCorrection | string | Error correction level. Automatically forced to H when a logo is provided. |
| logo | object | Optional logo to overlay in the center of the QR code. Requires error correction H (set automatically). |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/citoapi/json-schema/citoapi-qr-generate-body-schema.json",
"title": "QrGenerateBody",
"x-generated": "2026-11-10",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/citoapi-qr-code-api-openapi.yml#/components/schemas/QrGenerateBody",
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"type": "string",
"description": "Text or URL to encode into the QR code.",
"maxLength": 2048
},
"size": {
"type": "integer",
"description": "Output image size in pixels (width = height).",
"default": 300,
"minimum": 100,
"maximum": 2000
},
"format": {
"type": "string",
"description": "Output format.",
"enum": [
"png",
"svg",
"base64"
],
"default": "png"
},
"foreground": {
"type": "string",
"description": "Foreground (dark module) hex color.",
"default": "#000000"
},
"background": {
"type": "string",
"description": "Background hex color.",
"default": "#ffffff"
},
"margin": {
"type": "integer",
"description": "Quiet zone width in modules.",
"default": 4,
"minimum": 0,
"maximum": 10
},
"errorCorrection": {
"type": "string",
"description": "Error correction level. Automatically forced to H when a logo is provided.",
"enum": [
"L",
"M",
"Q",
"H"
],
"default": "M"
},
"logo": {
"type": "object",
"description": "Optional logo to overlay in the center of the QR code. Requires error correction H (set automatically).",
"required": [
"image"
],
"properties": {
"image": {
"type": "string",
"description": "Base64-encoded image with data URL prefix (e.g. data:image/png;base64,...)."
},
"sizeRatio": {
"type": "number",
"description": "Logo size as a fraction of the QR code size. Capped at 0.35 to preserve scannability.",
"default": 0.25,
"minimum": 0.1,
"maximum": 0.35
},
"padding": {
"type": "integer",
"description": "White padding around the logo in pixels.",
"default": 8,
"minimum": 0,
"maximum": 50
}
}
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/citoapi-qr-generate-body"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.