Retrieve a QR code
get_qr_codeGenerate a QR code for a URL and save it to a specified file, with options for size, colors, logo, and error correction.
Instructions
Retrieve a QR code for a link.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URL to generate a QR code for. | |
| logo | No | The logo to include in the QR code. Can only be used with a paid plan on Dub. | |
| size | No | The size of the QR code in pixels. Defaults to `600` if not provided. | |
| level | No | The level of error correction to use for the QR code. Defaults to `L` if not provided. | L |
| margin | No | The size of the margin around the QR code. Defaults to 2 if not provided. | |
| account | No | Exact configured private workspace profile label; not a tenant or provider account ID. | |
| confirm | No | Must be true for the requested mutation or exclusive private output file. | |
| bg_color | No | The background color of the QR code in hex format. Defaults to `#ffffff` if not provided. | #FFFFFF |
| fg_color | No | The foreground color of the QR code in hex format. Defaults to `#000000` if not provided. | #000000 |
| hide_logo | No | Whether to hide the logo in the QR code. Can only be used with a paid plan on Dub. | |
| output_file | Yes | Required absolute new private file. Exclusive 0600 creation; never overwrites or echoes PNG/embed credentials. | |
| include_margin | No | DEPRECATED: Margin is included by default. Use the `margin` prop to customize the margin size. |