QR Code
Make a QR code for a page of this site and store it as a project asset: SVG (vector, print-ready at any size) or PNG. The URL must be on one of the project's own hosts. Tip: point the code at a redirect rule (redirects integration) with UTM parameters, so the printed code never has to change when the target does. Use preview to show the code before storing it; list and delete stored codes with list_assets and delete_asset (folder qr/).
Try it with your AI assistant
Once WebsitePublisher is connected to your AI assistant, paste one of these into the chat. Replace the parts in [brackets] with your own details.
@WebsitePublisher make a QR code for my flyer that points to my [landing page], as SVG for print@WebsitePublisher create a QR code for each table that opens my menu pageWith WebsitePublisher, make a QR code for my flyer that points to my [landing page], as SVG for printWith WebsitePublisher, create a QR code for each table that opens my menu pageWith WebsitePublisher, make a QR code for my flyer that points to my [landing page], as SVG for printWith WebsitePublisher, create a QR code for each table that opens my menu pageEndpoints (2)
Render a QR code for a URL on this project and store it as an asset. Returns asset_url (CDN) and slug. Defaults: svg, 1024 px, margin 4, error correction M, black on white. Keep a dark code on a light background; very light or inverted colours are refused because they do not scan.
| Field | Type | Required | Description |
|---|---|---|---|
url |
string | ✓ Yes | Full URL the code opens, on one of this project's hosts, e.g. https://www.example.com/go/flyer. |
format |
string | No | svg (default, vector, for print) or png. |
size |
integer | No | Width and height in pixels, 128-2048 (default 1024). |
margin |
integer | No | Quiet zone around the code in modules, 0-10 (default 4; keep 4 for print). |
error_correction |
string | No | L, M (default), Q or H. Higher survives more damage but makes a denser code. |
foreground |
string | No | Colour of the code, e.g. #000000 (default). |
background |
string | No | Background colour, e.g. #FFFFFF (default). |
slug |
string | No | Asset path, e.g. qr/flyer-2026. The extension follows format. Default qr/qr-<hash>. |
overwrite |
boolean | No | Replace an existing asset with the same slug. |
Render the QR code without storing it: returns an SVG data URI (max 512 px) to show the user first. Same input as generate.
| Field | Type | Required | Description |
|---|---|---|---|
url |
string | ✓ Yes | Full URL on one of this project's hosts. |
size |
integer | No | Pixels (preview is capped at 512). |
margin |
integer | No | Quiet zone in modules (default 4). |
error_correction |
string | No | L, M (default), Q or H. |
foreground |
string | No | Colour of the code (default #000000). |
background |
string | No | Background colour (default #FFFFFF). |
MCP Tool Names
When using this integration through an AI assistant (Claude, ChatGPT, Cursor, etc.), the endpoints are available as MCP tools:
| Endpoint | MCP Tool Name |
|---|---|
| generate | qr-code_generate |
| preview | qr-code_preview |
Website