QRForge

REST API

Authenticate with the API key from Settings as a Bearer token. Requests and responses are JSON. Errors return { "error": "…" } with a 4xx status.

GET/api/v1/qrcodes

List your QR codes with their short links and scan counts.

curl -H "Authorization: Bearer $KEY" $HOST/api/v1/qrcodes

POST/api/v1/qrcodes

Create a dynamic website QR code. Body: { name, url }.

curl -X POST -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
  -d '{"name":"Spring flyer","url":"https://example.com/spring"}' $HOST/api/v1/qrcodes

GET/api/v1/qrcodes/:id

One QR code with total and unique scans.

curl -H "Authorization: Bearer $KEY" $HOST/api/v1/qrcodes/42

PATCH/api/v1/qrcodes/:id

Update name, url (website codes) or paused.

curl -X PATCH -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
  -d '{"paused":true}' $HOST/api/v1/qrcodes/42

DELETE/api/v1/qrcodes/:id

Delete a QR code and its scan history.

curl -X DELETE -H "Authorization: Bearer $KEY" $HOST/api/v1/qrcodes/42