Dynamic QR links & analytics
Create a stable redirect link, design its QR code, update the destination and inspect retained scan activity without reprinting the artwork.
On this page
Create the link, then generate the QR
Check GET /v1/projects/{projectId}/dynamic-codes/capabilities for creation access, active-link capacity, analytics access and retention days. Authenticate with a project key or customer token. Creation and scan tracking depend on your plan.
POST a name, public HTTP(S) destination and optional analyticsEnabled to /v1/projects/{projectId}/dynamic-codes, using a UUIDv4 Idempotency-Key. The response contains id, revision and redirectUrl. Use the returned URL exactly; do not construct a redirect origin yourself.
{
"name": "Product care guide",
"destination": "https://example.com/care",
"analyticsEnabled": true
}Generate artwork through the existing QR API, setting content to that redirectUrl. Use the same patterns, colors, logos, frames and transparent PNG/SVG export as a static QR. Rendering uses the normal QR processing quote; creating/editing the link and reading analytics do not create a QR-generation charge.
The Customer portal combines these steps in its QR designer. Choose Dynamic and enable Track scans when available. The free style sample uses demo content; Preview generates your actual encoded output.
Update, pause and organize links
| Method | Project-relative path | Purpose |
|---|---|---|
GET | /dynamic-codes | Paginated links; page, limit, status and literal name search |
GET | /dynamic-codes/{id} | Current owned settings and revision |
PATCH | /dynamic-codes/{id} | Edit name/destination, tracking, saved QR options or status |
Prefix these paths with /v1/projects/{projectId}. PATCH requires the current expectedRevision and a fresh idempotency key. Reuse that key and identical body to recover an uncertain mutation. If the revision changed, fetch current settings before applying a new edit.
{
"expectedRevision": 0,
"destination": "https://example.com/new-care-guide"
}Set status to active, paused or deleted. Paused links do not redirect or occupy active capacity. Deleted links cannot be restored or reused. Updating the destination leaves the stable redirect URL unchanged. An active resolver GET returns a non-cacheable 302; HEAD does not record a scan. Owner/project restrictions and suspension still apply.
Create link fields
| Field | Type / values | Contract |
|---|---|---|
analyticsEnabled | boolean | Optional. |
name | string | Required. |
destination | string | Required. Up to 2048 characters. |
Update link fields
| Field | Type / values | Contract |
|---|---|---|
analyticsEnabled | boolean | Optional. |
qrOptions | object | Optional. |
expectedRevision | number | Required. |
name | string | Optional. |
destination | string | Optional. |
status | active | paused | deleted | Optional. |
Read scan reports and export CSV
GET /v1/projects/{projectId}/dynamic-codes/{id}/analytics for totals, daily activity, device/browser/country breakdowns and recent request evidence. Add /export to download CSV with the same filters.
| Parameter | Values / bounds |
|---|---|
| days | 1–90; default 7, bounded by your retained history |
| device | desktop, mobile, tablet, bot, unknown |
| browser | chrome, edge, firefox, safari, other, unknown |
| country | Two-letter country code or unknown |
| bot | true or false; inferred from request evidence |
Recent requests include available IP, user agent, referrer, language, platform and related request evidence. Missing or unverified location is unknown. Scan collection is bounded and best effort: repeated requests and inferred bots may count. These are recorded requests, not guaranteed deliveries or unique people. Recent details are limited to the latest 100 matching events and raw request evidence expires within one day; aggregate history follows plan retention. CSV is bounded too.
Turning tracking off stops new collection while existing history follows its expiry. Reducing retention applies a cutoff that an upgrade cannot restore. List scan totals cover the retained window, not lifetime activity. Protect analytics exports and avoid publishing request-level personal data.
Explore the dynamic QR workflow →