Schnellstart
Mit der QR Cake-API können QR Cake-Nutzer die QR-Codes ihres Kontos verwalten.
Authentifizierung
Erstellen Sie in Ihrem Dashboard einen API-Schlüssel und senden Sie ihn im Authorization-Header.
Authorization: Bearer <API Key> Content-Type: application/json
API-Schlüssel verwalten in Dashboard-API-Schlüssel.
API-Anfrage-Tester
Testen Sie Endpunkte direkt auf dieser Seite. Geben Sie Ihren API-Schlüssel ein, wählen Sie einen Endpunkt aus und prüfen Sie die Live-Antwort.
Interaktiver API-Tester
Senden Sie Anfragen direkt aus Ihrem Browser an den ausgewählten QR Cake-API-Endpunkt.
Authorization: Bearer YOUR_API_KEYhttps://api.qrcake.com/v1/product/user/product
Terminologie
Produkte
QR-Codes
Benutzer
QR Cake-Konten
Anfragetexte (POST/PUT)
Für POST- und PUT-Anfragen müssen Anfragetexte als String übergeben werden. Wenn Sie JSON senden, übergeben Sie einen JSON-String (z. B. JSON.stringify(payload)).
const payload = { redirect: "https://example.com", metadata: {} };
await fetch(url, {
method: "POST",
body: JSON.stringify(payload),
});QR-Codes auflisten
Listet die QR-Codes auf, auf die der API-Schlüssel Zugriff hat.
Authorization: Bearer <API Key>Accept: application/json
[
{
"accountId": "string",
"productId": "string",
"userId": "string",
"redirect": "string",
"state": "ACTIVE",
"metadata": {},
"createdAt": 0,
"updatedAt": 0
}
]{
"message": {}
}Produkte = QR-Codes.
QR-Code abrufen
Ruft einen QR-Code ab.
- productId (string)
Authorization: Bearer <API Key>Accept: application/json
{
"accountId": "string",
"productId": "string",
"userId": "string",
"redirect": "string",
"state": "ACTIVE",
"metadata": {},
"createdAt": 0,
"updatedAt": 0
}{
"message": {}
}QR-Code erstellen
Erstellt ein neues QR-Code-Produkt.
Authorization: Bearer <API Key>Content-Type: application/jsonAccept: application/json
{
"redirect": "https://example.com",
"metadata": {},
"state": "ACTIVE"
}{
"accountId": "string",
"productId": "string",
"userId": "string",
"redirect": "string",
"state": "ACTIVE",
"metadata": {},
"createdAt": 0,
"updatedAt": 0
}{
"message": {}
}Der POST-Anfragetext muss als String übergeben werden (z. B. JSON.stringify(payload)).
QR-Code aktualisieren
Aktualisiert einen vorhandenen QR-Code (Produkt).
- productId (string)
Authorization: Bearer <API Key>Content-Type: application/jsonAccept: application/json
{
"redirect": "https://example.com",
"metadata": {},
"state": "ACTIVE"
}{
"accountId": "string",
"productId": "string",
"userId": "string",
"redirect": "string",
"state": "ACTIVE",
"metadata": {},
"expiresAt": 0,
"createdAt": 0,
"updatedAt": 0
}{
"message": {}
}Der PUT-Anfragetext muss als String übergeben werden.
QR-Code löschen
Löscht einen QR-Code.
- productId (string)
Authorization: Bearer <API Key>Accept: application/json
{
"productId": "string"
}{
"message": {}
}Berechtigungen
Gibt die Berechtigungen zurück, die dem API-Schlüssel gewährt wurden.
Authorization: Bearer <API Key>Accept: application/json
{
"success": true,
"result": {
"analytics": true,
"productLimit": 100,
"tier": "subscriber",
"productTotal": 3,
"productActiveLimit": 100,
"productActiveTotal": 3
}
}{
"message": {}
}Unterstützte QR-Typen
Verwenden Sie diese Metadatentypen beim Erstellen oder Aktualisieren von QR-Produkten.
redirect, link, image, video, file, pdf, audio, app, event, vCard
Beginnen Sie mit dynamischen QR-Codes und veränderbaren QR-Codes auf unserer Startseite.