QR Cheetah

QR Cheetah API and webhooks

Create and manage dynamic QR codes and short links from your own software, and get a signed HTTP callback when they are scanned or changed. The API and webhooks are included in the Pro plan ($29/month).

Authentication

Create a key on your Account page. It is shown once; we store only a hash of it. Send it on every request:

curl https://api.qrcheetah.com/v1/account \
  -H "Authorization: Bearer qrc_live_YOUR_KEY"

The header X-API-Key: qrc_live_... also works. Keys belong to your account; revoke one at any time from the Account page. If your plan drops below Pro, requests return 403 until you upgrade again; your keys are kept.

Base URL: https://api.qrcheetah.com/v1. Requests and responses are JSON; timestamps are ISO 8601 in UTC.

Rate limits

Pro: 60 requests per minute per key and 10,000 requests per day per account (resets at 00:00 UTC). Every response carries X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Daily-Limit and X-RateLimit-Daily-Remaining. Over the limit you get 429 with Retry-After (seconds). Need more? Contact us.

Errors

Errors return a non-2xx status and {"error": "message"}.

StatusMeaning
400Invalid input (for example a destination that is not an http(s) URL, or links to another URL shortener)
401Missing, invalid or revoked API key
403Plan limit reached ("upgradeRequired": true) or the plan does not include the API
404Not found, or it belongs to another account
409Short-link alias already taken
429Rate limit, or more than 10 destination changes to one code in an hour

Dynamic QR codes

A dynamic code encodes encodedUrl (https://api.qrcheetah.com/r/{id}), which redirects to destination. Changing the destination never changes the printed code. Codes keep redirecting even if you cancel your plan; only paused or deleted codes stop.

Create a code

curl -X POST https://api.qrcheetah.com/v1/qr-codes \
  -H "Authorization: Bearer qrc_live_YOUR_KEY" -H "Content-Type: application/json" \
  -d '{"destination": "https://example.com/menu", "name": "Table menu", "foregroundColor": "#1F2937", "backgroundColor": "#FFFFFF"}'

Returns 201 with the code. Counts against your plan's active dynamic codes (150 on Pro). Colours are optional #RRGGBB values.

{
  "id": "6f1c2e0a-3b7d-4c55-9a1e-2d4b8f0c9e11",
  "type": "dynamic",
  "name": "Table menu",
  "destination": "https://example.com/menu",
  "encodedUrl": "https://api.qrcheetah.com/r/6f1c2e0a-3b7d-4c55-9a1e-2d4b8f0c9e11",
  "status": "active",
  "scans": 0,
  "lastScannedAt": null,
  "imageUrl": "https://snapitqr-assets.s3.amazonaws.com/qr-codes/6f1c2e0a-....png",
  "createdAt": "2026-10-30T18:00:00.000Z",
  "updatedAt": "2026-10-30T18:00:00.000Z",
  "source": "api"
}

List, read, update, delete

RequestWhat it does
GET /v1/qr-codes?limit=50&cursor=...Newest first, up to 100 per page. Pass nextCursor back as cursor for the next page.
GET /v1/qr-codes/{id}One code
PATCH /v1/qr-codes/{id}Body with any of destination, name, status ("active" or "paused"). PUT works the same.
DELETE /v1/qr-codes/{id}Deletes the code and frees its slot. Scans of it return "not found" afterwards.
GET /v1/qr-codes/{id}/image?format=svg&size=1000The code as SVG or PNG (format=png, default), 128 to 2,000 px
GET /v1/qr-codes/{id}/statsScan totals, today, last 7 and 30 days, daily counts, devices, browsers and countries (when known)
curl -X PATCH https://api.qrcheetah.com/v1/qr-codes/6f1c2e0a-3b7d-4c55-9a1e-2d4b8f0c9e11 \
  -H "Authorization: Bearer qrc_live_YOUR_KEY" -H "Content-Type: application/json" \
  -d '{"destination": "https://example.com/winter-menu"}'

Short links live at https://qrcheetah.com/r/{shortCode}. A dynamic link can point somewhere new at any time; a locked link's destination is fixed. Pro includes 150 dynamic and 5,000 locked links.

curl -X POST https://api.qrcheetah.com/v1/short-links \
  -H "Authorization: Bearer qrc_live_YOUR_KEY" -H "Content-Type: application/json" \
  -d '{"destination": "https://example.com/spring-sale", "alias": "spring-sale", "type": "dynamic", "title": "Spring sale", "expiresAt": "2027-04-30"}'

All fields except destination are optional. Without type, you get a dynamic link while you have room for one, otherwise a locked one. alias is 3 to 40 letters, numbers, hyphens or underscores.

RequestWhat it does
GET /v1/short-linksAll your links, newest first
GET /v1/short-links/{shortCode}One link
PATCH /v1/short-links/{shortCode}Any of url (dynamic links only), title, status, expiresAt (null removes it)
DELETE /v1/short-links/{shortCode}Deletes the link and frees its slot
GET /v1/short-links/{shortCode}/statsClick stats, same shape as QR code stats

Account

GET /v1/account returns your plan, limits and current usage, for example to check how many dynamic codes you have left.

Webhooks

Add up to 5 HTTPS endpoints on your Account page and choose events. We send one POST per event per endpoint, usually within a few seconds, with a 5-second timeout. Reply with any 2xx status. We do not retry; the endpoint's last status and error are shown on the Account page, and an endpoint is switched off after 50 failed deliveries in a row. Pro includes 100,000 deliveries a month.

EventWhen
qr.scannedA dynamic QR code was scanned
qr.created, qr.updated, qr.deletedA code was created, its destination, name, colours or status changed, or it was deleted (from the dashboard, a team member or the API)
link.clickedA short link was opened
link.created, link.updated, link.deletedSame, for short links
pingThe "Send test" button

Payload

POST /your/endpoint
Content-Type: application/json
QRCheetah-Event: qr.scanned
QRCheetah-Delivery: evt_8c1d...
QRCheetah-Signature: t=1793390400,v1=5f2b9c...

{
  "id": "evt_8c1d...",
  "type": "qr.scanned",
  "created": "2026-10-30T18:00:02.120Z",
  "apiVersion": "2026-10-30",
  "data": {
    "qrCode": { "id": "6f1c2e0a-...", "name": "Table menu", "destination": "https://example.com/menu", "scans": 42, "status": "active", ... },
    "scan": { "at": "2026-10-30T18:00:01.004Z", "totalScans": 42 }
  }
}

Verify the signature

Each endpoint has its own secret (whsec_..., shown once when you add it; "New secret" replaces it). Compute HMAC-SHA256 of "{t}.{raw request body}" with the secret and compare it with v1 using a constant-time comparison. Reject timestamps more than 5 minutes old to stop replays.

// Node.js (Express: use express.raw({ type: 'application/json' }) for this route)
const crypto = require('crypto');
function verify(rawBody, header, secret) {
  const parts = Object.fromEntries(header.split(',').map(p => p.split('=')));
  const t = Number(parts.t);
  if (!t || Math.abs(Date.now() / 1000 - t) > 300) return false;
  const expected = crypto.createHmac('sha256', secret).update(`${t}.${rawBody}`).digest('hex');
  const given = Buffer.from(parts.v1 || '', 'hex');
  const want = Buffer.from(expected, 'hex');
  return given.length === want.length && crypto.timingSafeEqual(given, want);
}
# Python
import hmac, hashlib, time
def verify(raw_body: bytes, header: str, secret: str) -> bool:
    parts = dict(p.split("=", 1) for p in header.split(","))
    t = int(parts.get("t", 0))
    if abs(time.time() - t) > 300:
        return False
    expected = hmac.new(secret.encode(), f"{t}.".encode() + raw_body, hashlib.sha256).hexdigest()
    return hmac.compare_digest(expected, parts.get("v1", ""))
Endpoints must be public https:// URLs on port 443. Private, loopback and link-local addresses are refused, and redirects are not followed.

Teams

Pro includes 2 team seats. Invite people from the Account page; they work in your workspace from their own Account page, as editors or viewers. API keys and webhooks belong to the account owner and cover every code in the workspace, including codes your team creates.

Not available yet

SSO / SAML sign-in and custom short-link domains are coming soon. There is no sandbox environment: test with a code you create and delete.