Skip to content

QR Codes API

Overview

The Codes API is the core of qr3.app. Use it to create, update, and delete dynamic and static QR codes.

Base URL: https://qr3.app/v1/codes

Create a QR Code

POST /v1/codes

Terminal window
curl -X POST https://qr3.app/v1/codes \
-H "Authorization: Bearer qr3_sk_..." \
-H "Content-Type: application/json" \
-d '{
"type": "url",
"url": "https://example.com",
"title": "My first QR code",
"tags": ["marketing", "q1"],
"is_dynamic": true
}'

Response (HTTP 201):

{
"data": {
"id": "qr_a1b2c3d4",
"short_code": "r7f3Kx",
"redirect_url": "https://qr3.app/r7f3Kx",
"image_svg_url": "https://qr3.app/v1/codes/r7f3Kx/qr.svg",
"image_png_url": "https://qr3.app/v1/codes/r7f3Kx/qr.png",
"image_pdf_url": "https://qr3.app/v1/codes/r7f3Kx/qr.pdf",
"type": "url",
"status": "live",
"is_dynamic": true,
"total_scans": 0,
"created_at": "2026-03-15T10:00:00.000Z"
},
"meta": { "request_id": "req_xyz" }
}

List QR Codes

GET /v1/codes

Terminal window
GET /v1/codes?limit=20&status=live&type=url

Supported query parameters: limit, cursor, status (live/paused/archived), type, tags, search.

Get a QR Code

GET /v1/codes/:id

Terminal window
GET /v1/codes/qr_a1b2c3d4

Update a QR Code

PATCH /v1/codes/:id

Terminal window
curl -X PATCH https://qr3.app/v1/codes/qr_a1b2c3d4 \
-H "Authorization: Bearer qr3_sk_..." \
-H "Content-Type: application/json" \
-d '{"url": "https://new-destination.com", "status": "live"}'

Delete a QR Code

DELETE /v1/codes/:id

Soft-deletes the code. Active scans are preserved for analytics.

QR Code Types

TypeContent encoded
urlURL or redirect short link
vcardvCard 3.0 contact information
wifiWi-Fi connection (SSID, password, encryption)
emailmailto: with pre-filled subject and body
smssmsto: with pre-filled message
locationgeo: coordinates
textPlain text
phonePhone number (tel:)
eventCalendar event (BEGIN:VCALENDAR)

QR Code Images

Every code exposes three image URLs:

GET /v1/codes/:shortCode/qr.svg → SVG vector (scalable)
GET /v1/codes/:shortCode/qr.png → PNG raster
GET /v1/codes/:shortCode/qr.pdf → Print-ready PDF (A4 or square)

Optional query params: size (2–20 modules per pixel), format (a4/square), title.