{"openapi":"3.1.0","info":{"title":"QR Code API","version":"0.1.0","description":"Generate QR codes as SVG or PNG for any text or URL, with size, margin, error correction level and colours. Paid routes need a LicenRoute licence (Authorization: Bearer bgat_…)."},"components":{"securitySchemes":{"licence":{"type":"http","scheme":"bearer","description":"LicenRoute licence key (bgat_…)"}}},"paths":{"/v1/qr":{"get":{"summary":"Options and limits","security":[{"licence":[]}],"responses":{"200":{"description":"OK"},"400":{"description":"Empty or too long text, or an invalid option; the body says which."},"402":{"description":"Payment required: no valid licence. The body names the plan and where to buy it."},"403":{"description":"Invented or revoked licence."}}}},"/v1/qr/svg/{text}":{"get":{"summary":"QR code as SVG","security":[{"licence":[]}],"parameters":[{"name":"text","in":"path","required":true,"schema":{"type":"string","example":"https://licenroute.com"},"description":"Text or URL to encode, URL-encoded, up to 1000 characters"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","minimum":64,"maximum":1024,"default":256},"description":"Width in pixels"},{"name":"margin","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":10,"default":2},"description":"Quiet zone in modules"},{"name":"ecc","in":"query","required":false,"schema":{"type":"string","enum":["L","M","Q","H"],"default":"M"},"description":"Error correction level"},{"name":"dark","in":"query","required":false,"schema":{"type":"string","example":"000000"},"description":"Dark colour, 6 hex digits"},{"name":"light","in":"query","required":false,"schema":{"type":"string","example":"ffffff"},"description":"Light colour, 6 hex digits"}],"responses":{"200":{"description":"The image","content":{"image/svg+xml":{}}},"400":{"description":"Empty or too long text, or an invalid option; the body says which."},"402":{"description":"Payment required: no valid licence. The body names the plan and where to buy it."},"403":{"description":"Invented or revoked licence."}}}},"/v1/qr/png/{text}":{"get":{"summary":"QR code as PNG","security":[{"licence":[]}],"parameters":[{"name":"text","in":"path","required":true,"schema":{"type":"string","example":"https://licenroute.com"},"description":"Text or URL to encode, URL-encoded, up to 1000 characters"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","minimum":64,"maximum":1024,"default":256},"description":"Width in pixels"},{"name":"margin","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":10,"default":2},"description":"Quiet zone in modules"},{"name":"ecc","in":"query","required":false,"schema":{"type":"string","enum":["L","M","Q","H"],"default":"M"},"description":"Error correction level"},{"name":"dark","in":"query","required":false,"schema":{"type":"string","example":"000000"},"description":"Dark colour, 6 hex digits"},{"name":"light","in":"query","required":false,"schema":{"type":"string","example":"ffffff"},"description":"Light colour, 6 hex digits"}],"responses":{"200":{"description":"The image","content":{"image/png":{}}},"400":{"description":"Empty or too long text, or an invalid option; the body says which."},"402":{"description":"Payment required: no valid licence. The body names the plan and where to buy it."},"403":{"description":"Invented or revoked licence."}}}},"/health":{"get":{"summary":"Health check (free)","responses":{"200":{"description":"OK"}}}}}}