Get a QR code for a link
get_link_qrGenerates a print-ready QR code (PNG or SVG) for a link slug, with colour, logo, size and scan-tracking overrides, and returns the exact encoded URL.
Instructions
Read-only. A print-ready QR code for a link, in the workspace's QR style (Dashboard → Settings → QR codes); the options override it for this one code. Returns the image (PNG, or SVG markup) and the exact URL in the code. By default scans add utm_source=qr, so they show as the qr channel in analytics. Refused (400) if the colours have under 3:1 contrast.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| logo | No | Put the app icon in the middle (default: the workspace setting) | |
| size | No | Width and height in pixels, default 512 | |
| slug | Yes | The link's slug: the part after the link domain, e.g. `summer` in https://hilltop.strait.link/summer | |
| color | No | Code colour as hex, e.g. 1f2937 | |
| track | No | Add utm_source=qr so scans count as the qr channel (default true) | |
| format | No | png (default) or svg | |
| background | No | Background colour as hex, e.g. ffffff |