Render a QR template
qr_generate_from_templateRender 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 | Output width in pixels (raster) or viewport units (svg). 64-4096. | |
| outputHeight | No | Output height in pixels (raster) or viewport units (svg). 64-4096. | |
| 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. |