Every time you create or retrieve a short URL, Quikko automatically generates a QR code that encodes the full short link. The QR is returned as a 256×256 PNG image encoded as a base64 data URI — ready to drop directly into anDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Andr21Da16/Quikko/llms.txt
Use this file to discover all available pages before exploring further.
<img> tag or a download link. There is no separate endpoint to call and no polling required; the QR code ships alongside the URL metadata in a single response.
Where QR Codes Appear
TheqrCodeBase64 field is present in two endpoints:
POST /api/v1/urls
The URL creation response. Every newly created short URL includes its QR code in the same
201 response body.GET /api/v1/urls/code/{shortCode}
The URL detail endpoint. Fetches full metadata for a single URL by its short code, including a freshly generated QR code.
The qrCodeBase64 Field
The field value is a complete data URI — you can assign it directly to an <img> element’s src attribute with no further processing:
data:image/png;base64, prefix (set by qrDataPrefix in internal/shortener/qrcode.go), followed by the standard base64-encoded bytes of the PNG file.
QR Codes Are Not Persisted
QR codes are generated on demand at request time using thego-qrcode library and are never stored in MongoDB, Redis, or any other store. The generation is fast enough (microseconds) that caching adds no meaningful benefit. If you need the QR code again later — for example, to display it on a detail page — simply call GET /api/v1/urls/code/{shortCode} and a fresh code is produced instantly.
Using the QR Code in JavaScript
BecauseqrCodeBase64 is a fully-formed data URI, rendering it requires only a single line:
Handling Generation Failures
QR generation is treated as a non-critical operation. If the underlyinggo-qrcode library returns an error, the qrCodeBase64 field is set to an empty string rather than causing the whole URL creation request to fail. Always check the value before rendering:
In the Dashboard
The Next.js dashboard displays the QR code on every URL detail page. A Download button converts the data URI to a PNG file download using the browser’s native download API — no server round-trip required. This makes it straightforward to save the QR code for use in offline materials.Use Cases
Print materials
Embed the QR image directly into flyers, posters, or business cards. Visitors can scan to reach the destination without typing.
Presentations
Drop the data URI into a slide deck image. No external hosting or separate download step needed.
Offline sharing
Display QR codes on physical signage, product packaging, or event badges where URLs are impractical to type.
Instant preview
The QR code is available immediately on creation — no polling or webhook required before handing off to a design workflow.