Render a QR template
qr_generate_from_templateGenerate branded QR codes from curated templates by ID. Override encoded content, colors, and output format or size per render.
Instructions
Render one of the curated templates by id, optionally overriding the encoded content, colors, or output format/size for this specific call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | No | Override what the QR encodes. Defaults to the template's built-in content. | |
| fileFormat | No | Output format. Defaults to "png". | |
| templateId | Yes | The template id (from qr_list_templates). May be numeric or string (e.g. "luxury-gold"). | |
| outputWidth | No | ||
| outputHeight | No | ||
| primaryColor | No | Override module color (hex). | |
| backgroundColor | No | Override background color (hex). | |
| additionalConfig | No | Escape hatch for any other QrConfig override the engine accepts. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | Yes | File format the engine rendered: png, svg, jpg, webp or pdf. | |
| content | No | The text or URL the QR encodes, when the call set it. | |
| filePath | No | PDF in the stdio package only: local temp file the PDF was written to. | |
| mimeType | No | MIME type of the rendered file (the engine's contentType). | |
| sizeBytes | No | Size of the rendered file in bytes, as reported by the engine. | |
| resourceUri | No | PDF on the remote server only: URI of the embedded resource block that carries the file. |