Skip to main content
QRGen
← Back to Dashboard

API Documentation

Programmatically create, manage, and track QR codes.

Authentication

All API requests (except key generation) require a Bearer token in the Authorization header:

Authorization: Bearer qrgen_your_api_key_here

Generate 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

200Success
201Created
400Bad request / validation error
401Invalid or missing API key
404Resource not found

Base URL

https://qrgen.app/api/v1

Endpoints

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"