← Zurück
🛡️

QR-Docs Shield API

Dokumenten-Verifizierung als Service

1. API Key erstellen

Melde dich bei QR-Docs an und gehe zu Security → API Keys. Erstelle einen neuen Key mit einem Namen. Der Key wird nur einmal angezeigt — speichere ihn sicher.

2. Dokument signieren

POST https://qr-docs.de/api/v1/security/sign
x-api-key: qrd_xxxxxxxxxxxxxxxxxxxx
Content-Type: application/json

{
  "docHash": "sha256-hash-deines-dokuments",
  "metadata": {
    "name": "Rechnung_2026_001.pdf",
    "aussteller": "Musterfirma GmbH"
  },
  "expiresIn": 31536000
}

3. Antwort

{
  "token": "a1b2c3d4e5f6...",
  "verifyUrl": "https://qr-docs.de/verify/a1b2c3d4e5f6...",
  "docHash": "sha256-hash...",
  "signedAt": "2026-03-09T12:00:00.000Z"
}

4. Badge einbetten

<!-- In deiner HTML-Seite -->
<a href="https://qr-docs.de/verify/TOKEN">
  <img src="https://qr-docs.de/api/v1/security/badge?token=TOKEN"
       alt="Protected by QR-Docs Shield" />
</a>
Hash berechnen (JavaScript)
const hash = await crypto.subtle.digest('SHA-256', await file.arrayBuffer())
const hex = Array.from(new Uint8Array(hash)).map(b => b.toString(16).padStart(2,'0')).join('')