QR Code Generator API: Integrate Dynamic QR Codes Into Your App (2026 Developer Guide)
Programmatically create, customize, and manage dynamic QR codes with the PixelQR REST API. Authentication, endpoints, bulk workflows, webhooks, and production best practices for developers.

Manual QR creation breaks down at scale. When your app, ERP, or marketing automation needs hundreds of unique, branded, trackable QR codes per day, the PixelQR REST API is the production path—create, update, and analyze codes programmatically.
API Capabilities Overview
- Create QR codes — URL, vCard, WiFi, custom dynamic destinations
- Customize design — colors, patterns, logos, frames, error correction
- Update destinations — change redirect URL without regenerating image
- Bulk operations — batch create from JSON or CSV payloads
- Fetch analytics — scans, geography, devices, time series
- Manage campaigns — folders, tags, activation toggles
- Download assets — PNG, SVG, PDF at configurable resolution
- Webhooks — real-time scan notifications to your endpoint
Authentication
PixelQR API uses Bearer token authentication. Generate API keys from Dashboard → Settings → API (Pro plan required).
# Request header
Authorization: Bearer YOUR_API_KEY
# Base URL
https://api.pixel-qrcode.com/v1
Rotate keys quarterly. Use separate keys for staging and production. Never expose keys in client-side JavaScript.
Core Endpoints
| Method | Endpoint | Purpose |
|---|---|---|
| POST | /qr-codes | Create new QR code |
| GET | /qr-codes/:id | Retrieve code details |
| PATCH | /qr-codes/:id | Update destination or design |
| DELETE | /qr-codes/:id | Deactivate code |
| GET | /qr-codes/:id/analytics | Scan metrics |
| POST | /qr-codes/bulk | Batch create up to 1,000 |
Full reference: /api-reference
Example: Create a Dynamic URL QR
POST /v1/qr-codes
{
"name": "Product-SKU-8842",
"type": "url",
"destination": "https://shop.example.com/p/8842",
"isDynamic": true,
"foreground": "#1a1a2e",
"background": "#ffffff",
"pattern": "rounded",
"size": 1024,
"errorCorrection": "H"
}
Production Best Practices
Rate Limits & Retries
Pro: 100 req/min. Implement exponential backoff on 429 responses. Cache GET responses for 60 seconds.
Idempotency
Pass Idempotency-Key header on bulk creates to prevent duplicate codes on network retry.
Webhooks
Verify HMAC signatures on scan events. Use webhooks for CRM sync instead of polling analytics.
Error Handling
Log 4xx for bad payloads; alert on 5xx. Store PixelQR qr_id in your database for cross-reference.
Common Integration Patterns
- E-commerce: Auto-generate packaging QR per order line item via webhook on fulfillment.
- Event platforms: Unique attendee QR badges created on ticket purchase.
- CRM: Sales rep business card QR provisioned on new hire onboarding.
- IoT / Asset tracking: Equipment label QR linked to maintenance log URL.
Get API Access
Upgrade to Pro for API keys, unlimited dynamic codes, and production-grade rate limits.