Trygva Public API
REST-API fuer Hausverwaltungssoftware, Treuhaender, Steuerberater-Tools und ERP-Systeme. JSON-Payload, JWT-Auth, TypeScript-SDK, OpenAPI 3.1.
Nur API-Updates. Wir senden 4-6 E-Mails pro Jahr.
Was die API kann
JWT-Authentifizierung
Bearer-Token in Authorization-Header. Refresh-Token-Rotation alle 30 Tage. Tenant-isoliert via PostgreSQL Row-Level Security.
TypeScript SDK
Typsicherer SDK-Client (trygva-client.ts) mit Fully-Typed-Endpoints + automatischem Retry. Auto-generierte Types aus OpenAPI-Spec.
Webhooks
Event-driven Notifications fuer termination.created, document.signed, mautic.contact.synced, payment.succeeded. Mit Signed-Payload-Verification.
N8N + Zapier Connectors
Pre-built Nodes / Actions fuer No-Code-Integrationen. Pflegt N8N-Workflow-Templates und Zapier-Apps.
Multi-Tenant
Pro Tenant separate Subdomain + isolierte Daten via PostgreSQL RLS. Bulk-Operations fuer Hausverwaltungen mit 100+ Einheiten.
OpenAPI 3.1
Machine-readable Spec fuer automatische Client-Generation, Postman-Import, Schema-Drift-Detection.
Kern-Endpoints
/api/v1/terminationsNeuen Kuendigungsfall starten — gibt Wizard-Session-Token zurueck.
curl -X POST https://api.trygva.ch/v1/terminations \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"tenantId": "ten_abc123",
"country": "CH",
"reason": "EIGENBEDARF",
"tenantRecordId": "rec_xyz"
}'/api/v1/terminations/:idStatus eines Kuendigungsfalls abrufen — inkl. Risk-Score und TextGuard-Flags.
curl https://api.trygva.ch/v1/terminations/term_abc \ -H "Authorization: Bearer $TOKEN"
/api/v1/textguard/scanFrei-Text auf rechtliche Schwachstellen scannen (NLP).
curl -X POST https://api.trygva.ch/v1/textguard/scan \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{ "text": "Wir kuendigen Ihnen wegen Eigenbedarf...", "country": "CH" }'/api/v1/calculators/raeumungsklage-kostenVerfahrenskosten-Schaetzung fuer Raeumungsklagen — public, kein Auth.
curl -X POST https://api.trygva.ch/v1/calculators/raeumungsklage-kosten \
-H "Content-Type: application/json" \
-d '{ "country": "CH", "monthlyRent": 2000 }'/api/v1/webhooksWebhook-Subscription fuer Events. Bis zu 10 URLs pro Tenant.
curl -X POST https://api.trygva.ch/v1/webhooks \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"url": "https://your-system.example.com/trygva-events",
"events": ["termination.created", "document.signed"],
"secret": "your-shared-secret"
}'Connectors fuer No-Code-Integrationen
Status: API v1 in Entwicklung
Die Public-API befindet sich aktuell in Entwicklung — Beta- Zugriff auf Anfrage, Public-Launch Q4 2026. Bis dahin koennen Hausverwaltungen, Treuhaender und Steuerberater den Trygva- Wizard direkt nutzen oder einen Beta-Zugang fuer ihren Anwendungsfall anfragen ( partners@trygva.ch).