← zurück
API-Dokumentation
Alle öffentlichen Endpunkte werden per Public Site-Key (pk_live_…) authentifiziert — denselben Key nutzt auch das Widget. Der Key ist read-only, auf eine Site beschränkt sowie quota- und ratelimitiert; er darf im Browser stehen. Basis-URL: https://217-160-33-98.sslip.io
POST
/api/v1/chatalle PläneGestreamte, geerdete Chat-Antwort (Server-Sent Events). Antwortet nur aus den Inhalten der Site; ohne Treffer eine ehrliche „weiß ich nicht"-Antwort.
curl -N https://217-160-33-98.sslip.io/api/v1/chat \
-H "content-type: application/json" \
-d '{"siteKey":"pk_live_…","message":"Was kostet der Versand?"}'
# SSE-Stream:
# data: {"type":"meta","conversationId":"…"}
# data: {"type":"citations","items":[{"url":"…","title":"…"}]}
# data: {"type":"delta","text":"Der "}
# data: {"type":"done"}POST
/api/v1/searchab StarterSuche ohne Generierung — gerankte Treffer (URL, Titel, Snippet, Score).
curl https://217-160-33-98.sslip.io/api/v1/search \
-H "content-type: application/json" \
-d '{"siteKey":"pk_live_…","query":"Versandkosten","limit":5}'
# { "results": [ { "url": "…", "title": "…", "snippet": "…", "score": 0.71 } ] }POST
/api/v1/navigatorab ProIntent-Routing: kurze Antwort + relevante Links + erkannter Intent + optionale Aktion aus den konfigurierten Routen.
curl https://217-160-33-98.sslip.io/api/v1/navigator \
-H "content-type: application/json" \
-d '{"siteKey":"pk_live_…","query":"Wie erreiche ich den Support?"}'
# { "reply": "…", "links": [...], "intent": "contact", "action": { "label": "Kontakt", "url": "…" } }POST
/api/v1/formab ProKI-Formular: beantwortet Routine-Fragen selbst (
mode: "answer") oder liefert die zu sammelnden Felder (mode: "collect").curl https://217-160-33-98.sslip.io/api/v1/form \
-H "content-type: application/json" \
-d '{"siteKey":"pk_live_…","message":"Ich brauche ein individuelles Angebot"}'
# { "mode": "collect", "intro": "…", "collectFields": [ { "name": "email", "label": "E-Mail" } ] }POST
/api/v1/form/submitab ProFormular-Einsendung speichern (Lead). Erscheint im Dashboard unter „Leads".
curl https://217-160-33-98.sslip.io/api/v1/form/submit \
-H "content-type: application/json" \
-d '{"siteKey":"pk_live_…","data":{"name":"Erika","email":"e@x.de","message":"…"}}'
# { "ok": true }GET
/api/widget/config?key=pk_live_…alle PläneÖffentliche Widget-Konfiguration (Theme, Sprache, aktive Features). Wird vom Loader genutzt.
Hinweise
- CORS: offen für beliebige Origins (das Widget läuft auf Kundendomains); Schutz über Key + Quota + Rate-Limit.
- Quota: über dem Monatslimit antwortet
/chatmit402. Zu viele Anfragen →429. - Feature nicht im Plan:
403mitcode: "feature_unavailable". - Account-weite Secret-Keys für Server-zu-Server folgen (Business).