Schnellstart
Diese Anleitung fuehrt Sie durch das Erstellen einer Instanz, das Verbinden und das Senden Ihrer ersten Nachricht.
Voraussetzungen
- Ein Wappfy-Konto (Registrieren)
- Eine WhatsApp-Nummer zum Verbinden
- Ein API-Schluessel oder Supabase JWT-Token
Schritt 1: API-Schluessel erhalten
curl -X POST https://api.wappfy.io/api/api-keys \
-H "Authorization: Bearer YOUR_SUPABASE_JWT" \
-H "Content-Type: application/json" \
-d '{ "name": "My First Key" }'
Speichern Sie den zurueckgegebenen key-Wert — er wird nur einmal angezeigt.
Schritt 2: Instanz erstellen
curl -X POST https://api.wappfy.io/api/instances \
-H "X-Api-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Production WhatsApp",
"instance_type": "waha"
}'
Speichern Sie die zurueckgegebene id — Sie werden sie fuer alle folgenden Anfragen benoetigen.
Schritt 3: Per QR-Code verbinden
# Verbindung starten
curl -X POST https://api.wappfy.io/api/instances/INSTANCE_ID/connect \
-H "X-Api-Key: YOUR_API_KEY"
# QR-Code abrufen
curl https://api.wappfy.io/api/instances/INSTANCE_ID/qr \
-H "X-Api-Key: YOUR_API_KEY"
Oeffnen Sie WhatsApp auf Ihrem Telefon, gehen Sie zu Verknuepfte Geraete und scannen Sie den QR-Code aus dem qr-Feld (Base64-Bild).
Schritt 4: Nachricht senden
Sobald der Instanzstatus connected ist, koennen Sie Ihre erste Nachricht senden:
curl -X POST https://api.wappfy.io/api/instances/INSTANCE_ID/messages/send \
-H "X-Api-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"to": "5511999999999",
"type": "text",
"body": "Hello from Wappfy!"
}'
Antwort
{
"success": true,
"data": {
"message": "Message queued for delivery",
"jobId": "12345"
},
"meta": {
"requestId": "req_abc123",
"timestamp": "2026-02-10T12:00:00.000Z"
}
}
Naechste Schritte