API reference
Create dynamic QR codes and read statistics from your own systems. Create a key in Settings → API keys. Keys belong to one workspace.
Authentication
Send the key as a bearer token. Requests are limited to 120 per minute per key.
curl https://qr.holaha.com/api/v1/qr-codes \
-H "Authorization: Bearer hqr_live_…"
Endpoints
| Method | Path | Scope | Description |
|---|---|---|---|
| GET | /api/v1/qr-codes | read | List codes. Query: page, per_page (≤100), status, q. |
| POST | /api/v1/qr-codes | write | Create a website code: {"name","destination_url","folder","placement"}. |
| GET | /api/v1/qr-codes/:id | read | One code with its short link. |
| PATCH | /api/v1/qr-codes/:id | write | Change name, destination_url or status (active/paused). |
| DELETE | /api/v1/qr-codes/:id | write | Archive the code (it stops redirecting). |
| GET | /api/v1/qr-codes/:id/stats | read | Daily scans. Query: from, to (YYYY-MM-DD). |
| GET | /api/v1/usage | read | Plan limits and this month’s tracked scans. |
Errors
Errors use HTTP status codes and a JSON body:
{ "error": { "code": "validation_failed", "message": "Check the highlighted fields.", "fields": { "destination_url": "Use a web address that starts with http:// or https://." } } }
402 plan_limit means the workspace reached its dynamic code limit. Existing codes are never affected.