Skip to content

Awtentikazzjoni

Awtentikazzjoni

qr3.app juża API-Keys (Bearer-Token) għall-awtentikazzjoni. M’hemm l-ebda OAuth-flows — sempliċement iġġenera l-Key u użaha immedjatament.

Kif toħloq API-Key

  1. Idħol f’ app.qr3.app
  2. Mur fuq Settings → API-Keys
  3. Ikklikkja fuq Key Ġdida
  4. Agħżel il-permessi mixtieqa (Scopes)
  5. Ikkopja l-Key — se tintwera darba biss!

Tipi ta’ Keys

TipPrefissUżu
Secret Keyqr3_sk_Naħa tas-server (API, Backend)
Publishable Keyqr3_pk_Naħa tal-klijent (aċċess għall-qari biss)
Test Keyqr3_test_sk_Żvilupp (rate-limits tagħhom stess)

Użu

Headers tal-HTTP

Authorization: Bearer qr3_sk_your_key_here

cURL

Terminal window
curl https://qr3.app/v1/codes \
-H "Authorization: Bearer qr3_sk_your_key_here"

TypeScript SDK

import { QR3 } from "@qr3/sdk";
const client = new QR3({ apiKey: "qr3_sk_your_key_here" });
const codes = await client.codes.list();

CLI

Terminal window
qr3 login
# oder:
export QR3_API_KEY=qr3_sk_your_key_here

Rate Limits

PjanRequests/MinutaResponse-Headers
Free30X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset
Pro120
Business300
Agency600

F’każ li jinqabeż il-limitu, l-API tirritorna HTTP 429:

{
"type": "https://docs.qr3.app/errors/rate-limited",
"title": "Too Many Requests",
"status": 429,
"detail": "Rate limit of 30 requests/minute exceeded"
}

Scopes

ScopeDeskrizzjoni
*Aċċess sħiħ
codes:readAqra l-QR-Codes
codes:writeOħloq u editja l-QR-Codes
scans:readAqra l-istatistika tal-iskans
webhooks:writeIkkonfigura l-webhooks
account:readAqra l-informazzjoni tal-kont