Introduction
Welcome to the QBar Scanner Developer API — a RESTful API for creating, managing, and rendering QR codes programmatically.
What You Can Do
- Create QR codes — Single or bulk (up to 50 per request), supporting 9 content types
- Style QR codes — Custom dot patterns, color gradients, corner styles, and embedded logos
- Dynamic QR codes — Trackable short URLs that let you update content without reprinting
- Render images — Server-side SVG generation with automatic CDN caching
- Full CRUD — List, get, update, and delete your QR codes via API
Base URL
All API endpoints are available at:
https://api.qbar-scanner.com/api/v1/Quick Start
1. Get Your API Key
- Log in to QBar Scanner
- Go to Settings → Developer API
- Click Generate API Key
- Copy and securely store your key — it's shown only once
2. Create Your First QR Code
bash
curl -X POST https://api.qbar-scanner.com/api/v1/qrcodes \
-H "Content-Type: application/json" \
-H "X-API-Key: qbar_your_api_key_here" \
-d '{
"type": "url",
"content": {
"url": "https://example.com"
},
"name": "My First QR Code",
"is_dynamic": true
}'3. Get the QR Image
bash
curl -H "X-API-Key: qbar_your_api_key_here" \
"https://api.qbar-scanner.com/api/v1/qrcodes/{id}/image?size=400" \
-o qrcode.svgSupported QR Code Types
| Type | Description |
|---|---|
text | Plain text content |
url | Web URL with optional UTM parameters |
phone | Phone number for click-to-call |
email | Email with subject and message |
sms | SMS with phone number and message |
whatsapp | WhatsApp message with phone number |
wifi | WiFi network configuration |
contact | vCard contact information |
event | Calendar event (vEvent) |
See QR Code Types for detailed content fields per type.
Next Steps
- Authentication — How to authenticate your requests
- API Endpoints — Full endpoint reference
- Code Examples — Ready-to-use examples in 7+ languages