Skip to content

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

  1. Log in to QBar Scanner
  2. Go to SettingsDeveloper API
  3. Click Generate API Key
  4. 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.svg

Supported QR Code Types

TypeDescription
textPlain text content
urlWeb URL with optional UTM parameters
phonePhone number for click-to-call
emailEmail with subject and message
smsSMS with phone number and message
whatsappWhatsApp message with phone number
wifiWiFi network configuration
contactvCard contact information
eventCalendar event (vEvent)

See QR Code Types for detailed content fields per type.

Next Steps

QBar Scanner Developer API