Authenticate with a bearer token from Admin → API Tokens.
Authorization: Bearer YOUR_TOKEN
POST /api/qr
{"name":"My QR","type":"website"}
curl -X POST https://qr-depot.com/api/qr \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"My QR","type":"website"}'
PUT /api/qr/123
{"type":"website"}
curl -X PUT https://qr-depot.com/api/qr/123 \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"type":"website"}'
GET /api/qr/123/stats?from=2026-02-01&to=2026-02-06
curl "https://qr-depot.com/api/qr/123/stats?from=2026-02-01&to=2026-02-06" \
-H "Authorization: Bearer YOUR_TOKEN"
GET /api/qrs?limit=50&tag=promo
curl "https://qr-depot.com/api/qrs?limit=50&tag=promo" \
-H "Authorization: Bearer YOUR_TOKEN"
{
"error": "Missing bearer token"
}
{
"error": "Missing field: name"
}