Business plan
QR Code Desk REST API
List your dynamic QR codes, create link codes, change where a code goes and read daily scan counts from your own software. The API is part of the Business plan. Scan webhooks, which send each scan to Zapier, Make or your own server, are on Pro and Business.
Keys
Create a key in your account under Account → API keys. It's shown once; we keep only a hash. Send it in the Authorization header. A key works on its account's codes (shared with your team), with the same plan limits and link checks as the app. Revoked keys, keys of people removed from a team and keys of accounts that are no longer on Business stop working. Up to 5 active keys per account.
curl https://qrcodedesk.com/api/v1/codes \ -H "Authorization: Bearer qcd_YOUR_KEY"
Limits
60 requests a minute and 1,000 a day (UTC) per key, and 2,000 a day for all of an account's keys together. A code's destination can be changed through the API up to 10 times in 24 hours. Over a limit you get 429 with a Retry-After header in seconds. Every response has X-RateLimit-Remaining-Day (for the key). Up to 200 codes per list page.
Endpoints
List codes
GET /api/v1/codes?limit=100&offset=0, newest first. has_more tells you whether to fetch the next page (offset + limit).
{"data":[{"id":"6f1c…","name":"Table tents","short_url":"https://qrcodedesk.com/r/ab3k9xq","type":"link",
"destination":"https://joescafe.com/menu","status":"active","scans_total":412,"folder":"Downtown",
"tags":["spring"],"created_at":"2026-10-01T09:12:00Z","updated_at":"2026-10-12T16:40:03Z"}],
"limit":100,"offset":0,"has_more":false}
type is link, pdf, menu, card, links, app, coupon or event. status is active, paused or disabled.
Get one code
GET /api/v1/codes/{id}
Create a link code
POST /api/v1/codes with name (up to 80 characters), destination (a web address) and an optional folder name (created if it doesn't exist). The code gets the account's default design. Returns 201 and the code.
curl -X POST https://qrcodedesk.com/api/v1/codes \
-H "Authorization: Bearer qcd_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"Spring flyer","destination":"https://joescafe.com/spring","folder":"Flyers"}'
Change a destination or name
PATCH /api/v1/codes/{id} with destination and/or name. Printed codes follow the new link right away. Codes that open a PDF or a hosted page (menu, business card, link page, app link, coupon, event page) can be renamed but not repointed here (409); use the app.
curl -X PATCH https://qrcodedesk.com/api/v1/codes/6f1c… \
-H "Authorization: Bearer qcd_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"destination":"https://joescafe.com/summer"}'
Daily scan counts
GET /api/v1/codes/{id}/scans?from=2026-10-01&to=2026-10-13: scans per UTC day (default: the last 30 days, at most 366 days), with zeros for days without scans. Bots and link previews aren't counted.
{"code_id":"6f1c…","from":"2026-10-01","to":"2026-10-13","timezone":"UTC","total":57,
"days":[{"day":"2026-10-01","scans":4},{"day":"2026-10-02","scans":0}, …]}
Errors
Errors return JSON like {"error":{"code":"destination_refused","message":"…"}}: 401 unauthorized, 403 plan_required or plan_limit, 404 not_found, 409 not_a_link_code or code_disabled, 422 for invalid input (including links our safety checks refuse: raw IP addresses, user:password links, look-alikes of well-known brands, sites on our block list), 429 rate_limited or too_many_changes, 500 server_error.
Scan webhooks (Pro and Business)
A webhook sends every scan of your dynamic codes to an address you choose, as it happens: Zapier, Make, or your own server. Set it in Account → Scan webhook (the account owner only). One webhook per account; it must be a public https:// address. Bots and link previews aren't counted as scans, so they aren't sent. No IP addresses or visitor identifiers are ever included.
What we send
One POST per scan, with Content-Type: application/json, User-Agent: QRCodeDeskWebhook/1 and an X-QRCodeDesk-Signature header. id is unique per delivery (use it to ignore duplicates). unique is true for that phone's first scan of the code that day (UTC), null when it couldn't be worked out. outcome is destination, rule:N (the Nth redirect rule matched), password (the password page was shown) or expired. country is a two-letter code; country and city are approximate and may be null.
{"event":"scan","id":"0f9a3c1e-5b7d-4e2a-9c61-2d8e4f7a1b30","created_at":"2026-10-24T14:03:22.118Z",
"code":{"id":"6f1c…","slug":"ab3k9xq","name":"Table tents","short_url":"https://qrcodedesk.com/r/ab3k9xq"},
"scan":{"country":"US","city":"Austin","device":"iPhone","os":"iOS","browser":"Safari","unique":true,"outcome":"destination"}}
The Send test event button sends the same shape with "event":"test" and a sample code, so you can map the fields before a real scan happens. Filter on event = scan to skip test events.
Delivery
Each scan is sent once, right after the scanner has been redirected, so a slow endpoint never slows a scan. We wait up to 5 seconds for a 2xx answer; redirects aren't followed and there are no retries. Up to 120 deliveries a minute per account per server location; a burst beyond that isn't sent. During very large bursts (over 600 scans a minute from one network, such as one Wi-Fi, or very heavy traffic overall) some scans count in your totals but aren't sent to your webhook; past 30,000 a day from one network they may not be counted. Account → Scan webhook shows the last delivery's time, status and error, updated about once a minute. If deliveries keep failing (50 or more failures and no successful delivery for 24 hours) we turn the webhook off; fix the endpoint, send a test event and turn it back on. Changes to the settings take up to a minute to reach every server.
Check the signature
X-QRCodeDesk-Signature: t=1792850602,v1=5c0d…: t is the send time in Unix seconds, v1 the hex HMAC-SHA256 of t, a dot and the raw request body, keyed with your signing secret (whsec_…, shown once when you create the webhook or make a new secret). Compare in constant time and reject old timestamps. Node.js:
import crypto from "node:crypto";
// rawBody: the request body exactly as received, before JSON parsing.
function verifyQrCodeDesk(rawBody, header, secret, maxAgeSeconds = 300) {
const parts = Object.fromEntries(String(header || "").split(",").map((p) => p.split("=", 2)));
const t = Number(parts.t);
if (!t || Math.abs(Date.now() / 1000 - t) > maxAgeSeconds) return false;
const expected = crypto.createHmac("sha256", secret).update(`${t}.${rawBody}`).digest("hex");
const a = Buffer.from(expected), b = Buffer.from(parts.v1 || "");
return a.length === b.length && crypto.timingSafeEqual(a, b);
}
// Express: app.post("/qr-scans", express.raw({ type: "application/json" }), (req, res) => {
// if (!verifyQrCodeDesk(req.body.toString("utf8"), req.get("x-qrcodedesk-signature"), process.env.QRCODEDESK_SECRET)) return res.sendStatus(401);
// const event = JSON.parse(req.body); /* … */ res.sendStatus(204);
// });
Zapier
- Create a Zap. For the trigger choose Webhooks by Zapier → Catch Hook (Webhooks by Zapier is a premium app, on paid Zapier plans).
- Copy the webhook URL Zapier shows (
https://hooks.zapier.com/hooks/catch/…). - In QR Code Desk open Account → Scan webhook, paste it and save. Keep the signing secret somewhere safe.
- Press Send test event, then Test trigger in Zapier: the sample scan's fields appear.
- Optionally add a Filter step (only continue if
Eventexactly matchesscan), then your action, such as a Google Sheets row or a Slack message, and publish the Zap.
Make
- Create a scenario and add the Webhooks → Custom webhook module. Click Add, name the webhook and save; copy its address (
https://hook.…make.com/…). - Paste it in Account → Scan webhook in QR Code Desk and save.
- In Make click Run once (or Redetermine data structure on the webhook), then press Send test event in QR Code Desk. Make learns the fields.
- Add your next modules (a filter on
event=scanskips test events), then switch the scenario on with Immediately as data arrives.
Zapier and Make don't check signatures: treat their webhook address like a password. You're responsible for your endpoint and for what you do with the data sent to it (see our Terms).
Acceptable use
The API follows our Terms, including the acceptable use rules for destinations. Don't share keys or use the API to get around plan limits or link checks. We may revoke keys that are abused.