Skip to content

API reference (v1)

Base URL: https://dynqr.app/api/v1 · Machine-readable spec: OpenAPI 3.1 JSON

Authentication

Create a key in the dashboard under API keys (Pro and Business). Send it as a bearer token. Keys are scoped (qr:read, qr:write, analytics:read, campaigns:read, campaigns:write) and belong to one workspace. The secret is shown once.

curl https://dynqr.app/api/v1/qr-codes \
  -H "Authorization: Bearer dqr_live_xxxxxxxx"

Create a dynamic QR code

curl -X POST https://dynqr.app/api/v1/qr-codes \
  -H "Authorization: Bearer dqr_live_xxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{"name":"Spring menu","type":"url","mode":"dynamic","content":{"url":"https://example.com/menu"},"tags":["menu"]}'

Change the destination

curl -X PATCH https://dynqr.app/api/v1/qr-codes/{id} \
  -H "Authorization: Bearer dqr_live_xxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{"content":{"url":"https://example.com/summer-menu"}}'

Download the image

The rendered code with its saved design — logo, styles, gradient, frame and call-to-action. format is png (default), svg, jpg or pdf; size is the code width in pixels; variant=dark puts it on a dark card; mm sets the printed width for PDF.

curl "https://dynqr.app/api/v1/qr-codes/{id}/image?format=png&size=1024&variant=dark" \
  -H "Authorization: Bearer dqr_live_xxxxxxxx" -o menu-dark.png

Rate limits & errors

Limits are per key per hour (Pro 1,000, Business 10,000 by default). Every response includes X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset. Errors use one shape:

{ "error": { "code": "plan_limit", "message": "Your Pro plan allows 100 dynamic QR codes…", "details": { … } } }

Status codes: 400 validation, 401 bad key, 402 plan limit/feature, 403 scope or role, 404 not found (also for other workspaces' resources), 429 rate limited, 500 server error.

Endpoints

MethodPathDescription
GET/qr-codesList QR codes (Scope: qr:read)
POST/qr-codesCreate a QR code (Scope: qr:write. Counts toward the plan's dynamic QR code limit.)
GET/qr-codes/{id}Get a QR code (Scope: qr:read)
PATCH/qr-codes/{id}Update a QR code (e.g. change destination) (Scope: qr:write)
DELETE/qr-codes/{id}Delete a QR code and its scan history (Scope: qr:write)
POST/qr-codes/{id}/duplicateDuplicate a QR code (Scope: qr:write)
GET/qr-codes/{id}/imageRendered image with the saved design (logo, styles, frame) (Scope: qr:read)
GET/qr-codes/{id}/analyticsAnalytics for one QR code (Scope: analytics:read)
GET/analytics/overviewWorkspace analytics overview (Scope: analytics:read)
GET/campaignsList campaigns (Scope: campaigns:read)
POST/campaignsCreate a campaign (Scope: campaigns:write. Requires the campaigns feature.)

QR types and content

content depends on type: url → {"url"}, whatsapp → {"phone","message"}, wifi (static only) → {"ssid","password","encryption"}, app → {"iosUrl","androidUrl","fallbackUrl"}, and so on. Invalid content returns 400 with field-level details.

API reference · DynamicQR