Authentication
All API requests (except key generation) require a Bearer token in the Authorization header:
Authorization: Bearer qrgen_your_api_key_hereGenerate your API key from the Dashboard Settings or via the POST /api/v1/key endpoint while logged in.
Rate Limits & Errors
Error Format
{ "error": "Error message here" }Status Codes
200Success201Created400Bad request / validation error401Invalid or missing API key404Resource not foundBase URL
https://qrgen.app/api/v1Endpoints
Quick Start
1. Generate an API key (while logged in)
curl -X POST "https://qrgen.app/api/v1/key" \
-b "qrgen_session=YOUR_SESSION_COOKIE"2. Create a dynamic QR code
curl -X POST "https://qrgen.app/api/v1/qr" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"type":"url","isDynamic":true,"destinationUrl":"https://example.com","qrData":"https://example.com","label":"My Link"}'3. Check analytics
curl "https://qrgen.app/api/v1/qr/YOUR_QR_ID/analytics?days=7" \
-H "Authorization: Bearer YOUR_API_KEY"