⚡ 5 minuti
Quickstart: il tuo primo QR in 5 minuti
Segui questi 3 passaggi per creare il tuo primo codice QR tramite l'API. Nessuna dipendenza richiesta.
1
Ottieni la tua chiave API
Accedi alla dashboard e crea una chiave da /app/api-keys. Scegli gli scope qr:read e qr:write.
# Store your key in an environment variable
export IZIQR_API_KEY="izi_live_a3f24c8e9b1d7e2f6a8c4b9d3e5f1a7b2c9..."2
Crea il tuo primo codice QR
Invia un POST a /api/v1/qr:
curl -X POST https://iziqrcode.com/api/v1/qr \
-H "Authorization: Bearer $IZIQR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "url",
"name": "My first campaign",
"dynamic": true,
"data": { "url": "https://example.com" },
"design": { "fgColor": "#8b78ff", "shape": "rounded" }
}'Dovresti ottenere un 201 Created:
201 Created
{
"id": "qr_abc123def456",
"shortCode": "x7K2P9",
"type": "url",
"name": "My first campaign",
"dynamic": true,
"shortUrl": "https://iziqr.co/x7K2P9",
"qrImageUrl": "https://iziqrcode.com/api/v1/qr/qr_abc123def456/image",
"scanCount": 0,
"createdAt": "2026-05-18T10:00:00Z"
}3
Recupera l'immagine
Usa l'URL qrImageUrl per scaricarla in PNG / SVG / PDF:
# High-resolution PNG
curl "https://iziqrcode.com/api/v1/qr/qr_abc123/image?format=png&size=1024" \
-H "Authorization: Bearer $IZIQR_API_KEY" \
-o mon-qr.png
# Vector SVG
curl "https://iziqrcode.com/api/v1/qr/qr_abc123/image?format=svg" \
-H "Authorization: Bearer $IZIQR_API_KEY" \
-o my-qr.svgEcco fatto — il tuo primo QR è online.
Esplora gli altri endpoint: analytics, webhook, operazioni in blocco…