Dynamic QR codes
Print a QR code once, change where it points later, and see how often it is scanned.
A dynamic QR code encodes a short link such as https://qrdx.dev/q/aB3dE5f instead of your final URL. Scanning it opens the short link, which redirects to the destination you set. You can change the destination at any time, so printed codes never go out of date, and every scan is counted.
Static QR codes from the playground and the qrdx library stay free and unlimited. Dynamic codes need a QRdx account.
Create a dynamic code
- Dashboard: open Dashboard, click New code, enter the destination URL and an optional title. Download the code as PNG, WebP or SVG.
- Playground: choose the URL content type, enter your link and turn on Make it dynamic. The QR code switches to a short link and keeps your design. If you edit the URL afterwards, click Point it to the new URL to update the destination. Save design to code stores the current design with the code.
Destinations must be http:// or https:// links. Links with a username or password, and links to other QRdx short links, are rejected.
Custom back-halves
Every code gets a random 7-character back-half, the part after /q/. On Pro and Business you can choose your own instead, such as https://qrdx.dev/q/spring-menu: fill in Custom back-half when you create or edit a code, and the dialog tells you as you type whether it's free.
- 3 to 64 characters: letters, digits,
-and_, not starting or ending with-. - Back-halves are case-sensitive, like generated ones:
Spring-Menuandspring-menuare two different links. - On
qrdx.deva back-half is unique across all of QRdx, and words that read as QRdx pages (admin,api,docs,login,pricing,settings, ...) are reserved. - On your own custom domain it only has to be unique on that domain, and only
api,pandqare reserved, sogo.yourbrand.com/pricingworks. Such a back-half belongs to the domain: it has noqrdx.dev/q/link. - Changing the back-half of a code changes its link: QR codes printed with the old one stop working, so download the code again.
Manage codes
From the dashboard you can:
- Edit link: change the destination or title. The printed code keeps working and opens the new destination on the next scan.
- Change type: turn a website link into a hosted page, a page back into a link, or a page into another page type. The short link and scans stay. See Change what a printed code opens.
- Edit design in playground: opens the code in the editor, still bound to its short link.
- Archive: the short link shows a "no longer active" page until you restore the code. Archived codes don't count toward your plan limit.
- Move to trash: the short link shows a "no longer active" page (HTTP 410) and the code stops counting toward your plan. Restore it from Trash, or delete it forever there, which also removes its scan history; the short link then shows a "QR code not found" page. Deleting through the API (
DELETE /v1/codes/{id}) is permanent immediately. - Duplicate: copies the destination, design, folder, tags and notes into a new code with a new short link and no scans.
- Version history: every change is recorded on the code's page; restoring a version saves the current settings first, so a restore can be undone.
Organize codes
- Folders: nest up to 5 levels deep. Drag codes onto a folder or use Move to folder. Deleting a folder moves its codes and subfolders up one level.
- Tags: filter by several tags to see codes that have all of them.
- Favourites and notes: star codes and keep private notes; notes are searchable.
- Search covers titles, destinations, notes, tags and back-halves (paste a short link to find its code).
- Bulk actions: select codes to move, tag, pause, archive, favourite, trash or download them as a ZIP of PNG, WebP or SVG files.
- CSV import: Codes → Import creates up to 10,000 dynamic codes from one CSV (destination, title, folder, tags, optional custom back-half in the
slugcolumn), and can file every code into one folder and add tags to all of them. A long import can be paused, and it picks up after a reload or a dropped connection without making any code twice. It ends with a results CSV (each row's short link) and a ZIP of the codes as PNG or SVG. Importing more than one row, and custom back-halves, need Pro.
Codes belong to the workspace they're created in. Every member of the workspace can create and edit them; members can delete their own codes, owners and admins can delete any code in the workspace.
Codes never die: downgrading your plan never turns off existing codes. Over the limit you can still edit and archive codes, you just can't create or restore more until you're under it.
Plans
| Free | Pro | Business | |
|---|---|---|---|
| Active dynamic codes | 10 | Unlimited | Unlimited |
| Scans | Unlimited | Unlimited | Unlimited |
| Scan history | 90 days | 3 years | Unlimited |
| Bulk creation via the API | No | Up to 1,000 per request | Up to 1,000 per request |
A workspace's codes use the best plan among its owners. See Plans and limits for everything else each plan includes.
Scan analytics
Each code has an analytics page with scans over time, unique visitors, top countries and cities, devices, operating systems, browsers and referrers for the last 7, 30 or 90 days, 1 year or 3 years (limited by your plan's history). You can export the scans in the selected range as CSV.
What is recorded for each scan:
- Time (UTC), and country, region and city when the hosting platform provides them (Vercel geo headers on qrdx.dev)
- Device type, operating system and browser, detected from the user agent
- The referrer's host name only, never the full URL. Most QR scans have no referrer.
- A visitor hash: a salted SHA-256 of the IP address, user agent and day. It counts unique visitors per day; the IP address itself is never stored.
- On Pro and Business, when the code asks for precise location and the scanner allows it: their location rounded to 3 decimal places (about 100 m) and the accuracy their browser reported
Known bots, link previews and browser prefetches are not counted.
REST API
Manage codes programmatically under https://api.qrdx.dev/v1/codes. Requests are authenticated with an API key or an OAuth access token (Authorization: Bearer <key or token>) that has the codes:read or codes:write scope; see REST API for how to get one. A key acts on the workspace it was created in; token requests act on your own workspace. Requests from a signed-in browser session also work and act on the workspace you last opened in the dashboard.
| Method | Path | Description |
|---|---|---|
GET | /v1/codes | List codes. Query: status (active, archived, all), q, limit (≤ 100), offset |
POST | /v1/codes | Create one code, or an array of up to 1,000 (arrays need Pro). Body: destinationUrl, optional title, style, domainId and slug |
GET | /v1/codes/{id} | Get one code |
PATCH | /v1/codes/{id} | Update destinationUrl, title, style, domainId (custom domains), slug or archived, or switch kind between redirect and page |
DELETE | /v1/codes/{id} | Delete a code and its scans |
GET | /v1/codes/{id}/scans | Analytics for range (7d, 30d, 90d, 365d, 1095d; limited by your plan's history). Add limit (≤ 500) for individual scans, and before (the last scannedAt) for the next page |
Create a code:
curl https://api.qrdx.dev/v1/codes \
-H "Authorization: Bearer $QRDX_TOKEN" \
-H "Content-Type: application/json" \
-d '{"destinationUrl": "https://example.com/menu", "title": "Spring menu"}'{
"data": {
"id": "cm3x...",
"slug": "aB3dE5f",
"shortLink": "https://qrdx.dev/q/aB3dE5f",
"defaultShortLink": "https://qrdx.dev/q/aB3dE5f",
"domain": null,
"destinationUrl": "https://example.com/menu",
"title": "Spring menu",
"contentType": "url",
"kind": "redirect",
"pageId": null,
"status": "active",
"style": null,
"scanCount": 0,
"lastScannedAt": null,
"archivedAt": null,
"createdAt": "2026-10-31T12:00:00.000Z",
"updatedAt": "2026-10-31T12:00:00.000Z",
"organizationId": null
}
}Pass slug to choose the back-half (Pro and Business; see custom back-halves for the rules). With a domainId it's checked on that domain, otherwise on qrdx.dev:
curl https://api.qrdx.dev/v1/codes \
-H "Authorization: Bearer $QRDX_TOKEN" \
-H "Content-Type: application/json" \
-d '{"destinationUrl": "https://example.com/menu", "slug": "spring-menu"}'The response then has "slug": "spring-menu" and "shortLink": "https://qrdx.dev/q/spring-menu". A back-half chosen on a custom domain has "defaultShortLink": null, because it only exists on that domain. In an array, every slug must be different.
Many codes in one request
On Pro and Business, send an array of up to 1,000 codes. Generated back-halves never repeat within the batch or clash with existing codes. Links Google Web Risk can't check in time are looked up again shortly after the batch is created, and a code whose link it lists is switched off (safety checks). A batch is all or nothing: if any row has a problem (an invalid destination, a taken or reserved slug, an unsafe link), nothing is created and the error's data.details lists every problem by index, the row's place in the array (from 0).
Send an Idempotency-Key header with a value unique to the batch, such as a UUID. If the request times out or the connection drops, send the same request with the same key again: you get back the codes the first try made, with an Idempotent-Replayed: true header, and a try that was cut off part way is finished without making any code twice.
curl https://api.qrdx.dev/v1/codes \
-H "Authorization: Bearer $QRDX_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: 6f1c2a9e-spring-tables" \
-H "Prefer: return=minimal" \
-d '[{"destinationUrl": "https://example.com/table/1", "title": "Table 1"},
{"destinationUrl": "https://example.com/table/2", "title": "Table 2"}]'Each code comes back with its design. When your workspace's default theme embeds a logo, that adds up over a large batch: send Prefer: return=minimal to get each code without style (its id, slug, links, destination, title, status and creation time). A batch whose response wouldn't fit in 4 MB is refused with PAYLOAD_TOO_LARGE before anything is created.
Change the destination:
curl -X PATCH https://api.qrdx.dev/v1/codes/cm3x... \
-H "Authorization: Bearer $QRDX_TOKEN" \
-H "Content-Type: application/json" \
-d '{"destinationUrl": "https://example.com/summer-menu"}'style takes the same design fields as the playground (fgColor, bgColor, bodyPattern, cornerEyePattern, level, ...). For a logo, send logoIcon or an uploaded file's logoFileId (logos in a code's style). Encode shortLink in your QR code, for example with the qrdx library or the image API.
Errors use one JSON shape, { "code": "...", "message": "...", "status": 400 }, plus a docs link when a page explains the fix:
| Status | Code | When |
|---|---|---|
| 400 | VALIDATION_ERROR, INVALID_SLUG | Invalid body or query (details in data, by index in a batch), or a slug that breaks the rules or is reserved |
| 401 | UNAUTHORIZED, INVALID_TOKEN | No Authorization: Bearer token, or an invalid, expired or revoked one (get a token) |
| 402 | LIMIT_REACHED, PLAN_REQUIRED | Over your plan's active code limit, or bulk creation or a custom slug without Pro |
| 403 | INSUFFICIENT_SCOPE, FORBIDDEN | Token without the needed scope, or a workspace role that can't do this |
| 404 | NOT_FOUND | The code doesn't exist or isn't yours, or there's no such endpoint |
| 409 | SLUG_TAKEN | Another code already uses that slug (on qrdx.dev, or on the custom domain) |
| 429 | RATE_LIMITED | Too many requests; retry after the Retry-After header |
Self-hosting
Dynamic codes work on self-hosted instances too:
NEXT_PUBLIC_SHORT_LINK_BASE_URLsets the origin of short links. It defaults to your app URL.SCAN_HASH_SALTsets the secret salt for visitor hashes. Without it, one is derived fromBETTER_AUTH_SECRET.- Country, region and city come from Vercel's geo headers. Behind Cloudflare only the country is available (
CF-IPCountry); elsewhere locations show as unknown. - Area rules use Vercel's IP coordinates (
x-vercel-ip-latitude,x-vercel-ip-longitude) when a scanner didn't share a location. Elsewhere they only match scans with a shared location. - Rate limits apply when Upstash Redis is configured.
Last updated on