MostlyQR

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.

bash
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" }'
json
{
  "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

bash
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

bash
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