{"components":{"schemas":{"QRCodeInput":{"properties":{"access_password":{"maxLength":128,"minLength":4,"type":"string"},"bg_color":{"example":"#ffffff","type":"string"},"custom_domain_id":{"minimum":1,"type":"integer"},"dot_style":{"enum":["square","rounded","dots"],"type":"string"},"expires_at":{"format":"date-time","type":"string"},"fallback_url":{"format":"uri","type":"string"},"fg_color":{"example":"#465fff","type":"string"},"frame_label":{"example":"SCAN ME","maxLength":24,"type":"string"},"frame_style":{"enum":["none","bottom","top","badge"],"type":"string"},"link":{"example":"https://example.com/autumn-menu","format":"uri","type":"string"},"logo_data":{"description":"Base64 PNG/JPEG/GIF data URI","type":"string"},"max_scans":{"maximum":10000000,"minimum":1,"type":"integer"},"name":{"example":"Autumn Menu","type":"string"},"routing_rules":{"items":{"$ref":"#/components/schemas/RoutingRule"},"maxItems":10,"type":"array"},"slug":{"example":"autumn-menu","type":"string"},"tags":{"items":{"type":"string"},"maxItems":10,"type":"array"},"type":{"enum":["link","vcard","email","phone","sms","bitcoin","geo","wifi"],"type":"string"}},"required":["type","name"],"type":"object"},"RoutingRule":{"properties":{"match":{"example":"ios","type":"string"},"type":{"enum":["os","device","country"],"type":"string"},"url":{"example":"https://apps.apple.com/app/example","format":"uri","type":"string"}},"required":["type","match","url"],"type":"object"},"UpdateQRCodeInput":{"properties":{"access_password":{"type":"string"},"bg_color":{"type":"string"},"clear_password":{"type":"boolean"},"custom_domain_id":{"minimum":0,"type":"integer"},"dot_style":{"enum":["square","rounded","dots"],"type":"string"},"expires_at":{"type":"string"},"fallback_url":{"type":"string"},"fg_color":{"type":"string"},"frame_label":{"maxLength":24,"type":"string"},"frame_style":{"enum":["none","bottom","top","badge"],"type":"string"},"link":{"format":"uri","type":"string"},"logo_data":{"type":"string"},"max_scans":{"maximum":10000000,"minimum":0,"type":"integer"},"name":{"type":"string"},"routing_rules":{"items":{"$ref":"#/components/schemas/RoutingRule"},"maxItems":10,"type":"array"},"slug":{"type":"string"},"tags":{"items":{"type":"string"},"maxItems":10,"type":"array"}},"required":["name","link"],"type":"object"}},"securitySchemes":{"bearerAuth":{"bearerFormat":"dqr_live_token","description":"Personal API key created at https://dynamicqr.io/api-keys","scheme":"bearer","type":"http"}}},"externalDocs":{"description":"Developer Documentation \u0026 Quickstart Guides","url":"https://dynamicqr.io/docs"},"info":{"description":"Create, style, route, bulk-export, print, and measure dynamic QR codes programmatically via Bearer-authenticated JSON endpoints.","title":"DynamicQR REST API","version":"1.1.0"},"openapi":"3.1.0","paths":{"/domains":{"get":{"operationId":"listCustomDomains","responses":{"200":{"description":"Custom domain list"}},"summary":"List connected custom short domains and DNS/SSL status","tags":["Custom Domains"]},"post":{"operationId":"createCustomDomain","requestBody":{"content":{"application/json":{"schema":{"properties":{"host":{"example":"qr.example.com","type":"string"}},"required":["host"],"type":"object"}}},"required":true},"responses":{"201":{"description":"Created custom domain with DNS verification token"}},"summary":"Register a custom short domain (e.g. qr.example.com)","tags":["Custom Domains"]}},"/domains/{id}":{"delete":{"operationId":"deleteCustomDomain","parameters":[{"in":"path","name":"id","required":true,"schema":{"minimum":1,"type":"integer"}}],"responses":{"200":{"description":"Deleted"}},"summary":"Remove a custom short domain","tags":["Custom Domains"]},"patch":{"operationId":"updateCustomDomain","parameters":[{"in":"path","name":"id","required":true,"schema":{"minimum":1,"type":"integer"}}],"responses":{"200":{"description":"Updated custom domain"}},"summary":"Set or unset a verified custom domain as default","tags":["Custom Domains"]}},"/domains/{id}/ssl":{"post":{"operationId":"refreshCustomDomainSSL","parameters":[{"in":"path","name":"id","required":true,"schema":{"minimum":1,"type":"integer"}}],"responses":{"200":{"description":"Updated SSL status"}},"summary":"Retry or refresh automatic Let's Encrypt SSL provisioning for a verified domain","tags":["Custom Domains"]}},"/domains/{id}/verify":{"post":{"operationId":"verifyCustomDomain","parameters":[{"in":"path","name":"id","required":true,"schema":{"minimum":1,"type":"integer"}}],"responses":{"200":{"description":"Verification status"}},"summary":"Verify DNS CNAME or TXT ownership and queue automatic SSL provisioning","tags":["Custom Domains"]}},"/qr-codes":{"get":{"operationId":"listQRCodes","parameters":[{"in":"query","name":"search","schema":{"type":"string"}},{"in":"query","name":"type","schema":{"enum":["link","vcard","email","phone","sms","bitcoin","geo","wifi"],"type":"string"}},{"in":"query","name":"tag","schema":{"type":"string"}},{"in":"query","name":"sort","schema":{"enum":["name","type","slug","created_at"],"type":"string"}},{"in":"query","name":"direction","schema":{"enum":["asc","desc"],"type":"string"}},{"in":"query","name":"page","schema":{"minimum":1,"type":"integer"}}],"responses":{"200":{"description":"Paginated QR code list"}},"summary":"List, search, and filter QR codes","tags":["QR Codes"]},"post":{"operationId":"createQRCode","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QRCodeInput"}}},"required":true},"responses":{"201":{"description":"Created QR code"}},"summary":"Create a new dynamic or static QR code","tags":["QR Codes"]}},"/qr-codes/export":{"post":{"operationId":"bulkExportQRCodes","requestBody":{"content":{"application/json":{"schema":{"properties":{"format":{"enum":["svg","png"],"type":"string"},"ids":{"items":{"type":"integer"},"type":"array"},"size":{"maximum":4000,"minimum":64,"type":"integer"}},"type":"object"}}},"required":true},"responses":{"200":{"description":"ZIP archive"}},"summary":"Download a ZIP archive of up to 200 styled QR codes plus manifest.csv","tags":["Bulk \u0026 Print"]}},"/qr-codes/import":{"post":{"operationId":"bulkImportQRCodes","requestBody":{"content":{"application/json":{"schema":{"properties":{"csv":{"type":"string"}},"required":["csv"],"type":"object"}}},"required":true},"responses":{"201":{"description":"Imported QR codes"}},"summary":"Bulk-create up to 500 dynamic link QR codes atomically from CSV","tags":["Bulk \u0026 Print"]}},"/qr-codes/print-sheet":{"post":{"operationId":"generatePrintSheet","requestBody":{"content":{"application/json":{"schema":{"properties":{"columns":{"enum":[2,3,4],"type":"integer"},"ids":{"items":{"type":"integer"},"type":"array"},"paper":{"enum":["a4","letter"],"type":"string"},"show_cut_guides":{"type":"boolean"},"show_labels":{"type":"boolean"}},"type":"object"}}},"required":true},"responses":{"200":{"description":"PDF document"}},"summary":"Generate a multi-page A4 or US Letter PDF label sheet for up to 120 QR codes","tags":["Bulk \u0026 Print"]}},"/qr-codes/stats":{"get":{"operationId":"getAccountStats","parameters":[{"in":"query","name":"range","schema":{"enum":["week","month","three_months","inception","custom"],"type":"string"}},{"in":"query","name":"start","schema":{"format":"date","type":"string"}},{"in":"query","name":"end","schema":{"format":"date","type":"string"}}],"responses":{"200":{"description":"Daily scan series and breakdowns"}},"summary":"Get daily scan statistics and device/OS/country breakdowns across all QR codes","tags":["Analytics \u0026 Reports"]}},"/qr-codes/stats/export":{"get":{"operationId":"exportAccountStatsCSV","parameters":[{"in":"query","name":"range","schema":{"enum":["week","month","three_months","inception","custom"],"type":"string"}},{"in":"query","name":"start","schema":{"format":"date","type":"string"}},{"in":"query","name":"end","schema":{"format":"date","type":"string"}}],"responses":{"200":{"description":"UTF-8 CSV file"}},"summary":"Download workspace scan statistics as a UTF-8 CSV report","tags":["Analytics \u0026 Reports"]}},"/qr-codes/{id}":{"delete":{"operationId":"deleteQRCode","parameters":[{"in":"path","name":"id","required":true,"schema":{"minimum":1,"type":"integer"}}],"responses":{"200":{"description":"Deleted count and updated usage"}},"summary":"Delete a QR code and its scan history","tags":["QR Codes"]},"get":{"operationId":"getQRCode","parameters":[{"in":"path","name":"id","required":true,"schema":{"minimum":1,"type":"integer"}}],"responses":{"200":{"description":"QR code detail"}},"summary":"Get QR code details, routing rules, share link, and inline SVG","tags":["QR Codes"]},"patch":{"operationId":"updateQRCode","parameters":[{"in":"path","name":"id","required":true,"schema":{"minimum":1,"type":"integer"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateQRCodeInput"}}},"required":true},"responses":{"200":{"description":"Updated QR code"}},"summary":"Update destination URL, styling, controls, or smart redirects of a dynamic link QR code","tags":["QR Codes"]}},"/qr-codes/{id}/download/{format}":{"get":{"operationId":"downloadQRCode","parameters":[{"in":"path","name":"id","required":true,"schema":{"minimum":1,"type":"integer"}},{"in":"path","name":"format","required":true,"schema":{"enum":["png","svg"],"type":"string"}},{"in":"query","name":"size","schema":{"maximum":4000,"minimum":64,"type":"integer"}}],"responses":{"200":{"description":"Binary PNG or SVG image"}},"summary":"Download QR code image as PNG or vector SVG","tags":["QR Codes"]}},"/qr-codes/{id}/share":{"post":{"operationId":"toggleQRCodeShare","parameters":[{"in":"path","name":"id","required":true,"schema":{"minimum":1,"type":"integer"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"enabled":{"type":"boolean"},"regenerate":{"type":"boolean"}},"type":"object"}}},"required":true},"responses":{"200":{"description":"Public share URL or empty string when disabled"}},"summary":"Enable, regenerate, or disable a public read-only client report link","tags":["Analytics \u0026 Reports"]}},"/qr-codes/{id}/stats":{"get":{"operationId":"getQRCodeStats","parameters":[{"in":"path","name":"id","required":true,"schema":{"minimum":1,"type":"integer"}},{"in":"query","name":"range","schema":{"enum":["week","month","three_months","inception","custom"],"type":"string"}},{"in":"query","name":"start","schema":{"format":"date","type":"string"}},{"in":"query","name":"end","schema":{"format":"date","type":"string"}}],"responses":{"200":{"description":"Daily scan series and breakdowns"}},"summary":"Get daily scan statistics and breakdowns for one QR code","tags":["Analytics \u0026 Reports"]}},"/qr-codes/{id}/stats/export":{"get":{"operationId":"exportQRCodeStatsCSV","parameters":[{"in":"path","name":"id","required":true,"schema":{"minimum":1,"type":"integer"}},{"in":"query","name":"range","schema":{"enum":["week","month","three_months","inception","custom"],"type":"string"}},{"in":"query","name":"start","schema":{"format":"date","type":"string"}},{"in":"query","name":"end","schema":{"format":"date","type":"string"}}],"responses":{"200":{"description":"UTF-8 CSV file"}},"summary":"Download single QR code scan statistics as a UTF-8 CSV report","tags":["Analytics \u0026 Reports"]}},"/qr-codes/{id}/tags":{"put":{"operationId":"updateQRCodeTags","parameters":[{"in":"path","name":"id","required":true,"schema":{"minimum":1,"type":"integer"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"tags":{"items":{"type":"string"},"maxItems":10,"type":"array"}},"required":["tags"],"type":"object"}}},"required":true},"responses":{"200":{"description":"Updated tags"}},"summary":"Replace tags on any dynamic or static QR code","tags":["QR Codes"]}},"/usage":{"get":{"operationId":"getUsage","responses":{"200":{"description":"Current usage"}},"summary":"Get account plan, QR code usage, limits and paused count","tags":["Account"]}},"/webhooks":{"get":{"operationId":"listWebhooks","responses":{"200":{"description":"Webhook list"}},"summary":"List configured scan webhooks","tags":["Webhooks"]},"post":{"operationId":"createWebhook","requestBody":{"content":{"application/json":{"schema":{"properties":{"name":{"type":"string"},"url":{"format":"uri","type":"string"}},"required":["name","url"],"type":"object"}}},"required":true},"responses":{"201":{"description":"Created webhook and one-time signing secret"}},"summary":"Create an HMAC-SHA256 signed HTTPS scan webhook","tags":["Webhooks"]}},"/webhooks/{id}":{"delete":{"operationId":"deleteWebhook","parameters":[{"in":"path","name":"id","required":true,"schema":{"minimum":1,"type":"integer"}}],"responses":{"200":{"description":"Deleted"}},"summary":"Delete a scan webhook","tags":["Webhooks"]},"patch":{"operationId":"updateWebhook","parameters":[{"in":"path","name":"id","required":true,"schema":{"minimum":1,"type":"integer"}}],"responses":{"200":{"description":"Updated webhook"}},"summary":"Enable or pause a scan webhook","tags":["Webhooks"]}},"/webhooks/{id}/test":{"post":{"operationId":"testWebhook","parameters":[{"in":"path","name":"id","required":true,"schema":{"minimum":1,"type":"integer"}}],"responses":{"200":{"description":"Delivery result and HTTP status"}},"summary":"Send a signed test qr.scanned webhook payload immediately","tags":["Webhooks"]}}},"security":[{"bearerAuth":[]}],"servers":[{"description":"Production API v1","url":"https://dynamicqr.io/api/v1"}],"tags":[{"description":"Plan tier, limits, and active quota","name":"Account"},{"description":"Create, read, update, tag, style, route, and delete QR codes","name":"QR Codes"},{"description":"Daily scan statistics, CSV exports, and public client share links","name":"Analytics \u0026 Reports"},{"description":"Bulk CSV import, ZIP archives, and multi-page PDF label sheets","name":"Bulk \u0026 Print"},{"description":"HMAC-SHA256 signed real-time scan webhooks (qr.scanned)","name":"Webhooks"},{"description":"Branded custom short domains with DNS verification and automatic SSL","name":"Custom Domains"}]}