Quickstart
Create your first dynamic QR code in under a minute. MostlyQR codes are dynamic — you print the QR once and change where it points forever, with scan analytics built in. Most people use the dashboard; this guide is the REST API.
# 1. Get an API key
Create a key in the app under Settings → API keys. Keys look like mtq_live_…
(production) or mtq_test_… (testing). Send it as a Bearer token on every request. See
Authentication.
# 2. Create a dynamic link
curl https://mostlyqr.com/api/v1/links \
-H "Authorization: Bearer mtq_live_…" \
-H "Content-Type: application/json" \
-d '{ "destination_url": "https://northbrew.co/spring-menu", "title": "Spring menu" }'
{
"code": "AZ4K9",
"short_url": "https://mqr.sh/AZ4K9",
"destination_url": "https://northbrew.co/spring-menu",
"title": "Spring menu",
"status": "active"
}
Turn short_url into a QR (any generator, or the dashboard builder) and print it. Every
scan 302-redirects to the destination — and is counted.
# 3. Change where it points — no reprint
curl -X PATCH https://mostlyqr.com/api/v1/links/AZ4K9 \
-H "Authorization: Bearer mtq_live_…" \
-H "Content-Type: application/json" \
-d '{ "destination_url": "https://northbrew.co/summer-menu" }'
Every already-printed copy now resolves to the new URL, instantly. The code never expires — even if you stop paying, it freezes on its last destination instead of 404ing.
# 4. Read the scans
curl "https://mostlyqr.com/api/v1/links/AZ4K9/analytics?range=30d" \
-H "Authorization: Bearer mtq_live_…"
See Analytics for the full shape (geo, device, time).
# Next steps
- Dynamic links — every option for the
/v1/linksendpoints. - Batch — create thousands of codes in one call.
- Serialized codes — a unique code per physical unit (Enterprise).
- Verification — the public “is this genuine?” check.
- The full API reference.