live-chat

POST /v1/chat/widgets

Create a chat for a site.

Alle live-chat Endpunkte

Authentifizierung

Senden Sie einen API-Schlüssel als Bearer-Token. Der Schlüssel muss über die Berechtigung livechat.manage verfügen; ein Schlüssel ohne diese wird mit 403 statt 404 abgelehnt.

Hier kommt Ihre Organisations-ID hin

Dieser Endpunkt akzeptiert org_id als Feld im JSON-Body.

Die ID Ihrer Organisation finden Sie im Dashboard auf dem Bildschirm für API-Schlüssel direkt neben dem Schlüssel selbst. Sie ist bei jedem Ihrer Aufrufe dieselbe.

Ausprobieren

Ersetzen Sie alles in spitzen Klammern durch Ihre eigenen Werte und den Platzhalter für den Schlüssel durch einen Schlüssel aus Ihrem Dashboard.

curl -X POST https://api.zinndigital.com/v1/chat/widgets \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "name": <string> }'

Angemeldet? Die API-Konsole in Ihrem Dashboard trägt automatisch Ihre echte Organisations-ID sowie Ihren eigenen Schlüssel ein und führt die Anfrage gegen die Live-API aus, sodass Sie die tatsächliche Antwort sehen können. Öffnen Sie diesen Endpunkt in der API-Konsole

Details

Requires `livechat.manage`. The new widget is created **switched off**: a chat window that starts talking to a customer's visitors before they have asked for one is a consent problem, not a feature.

Anfragekörper

NameTypErforderlichWas es ist
org_idstringNein
site_idstringNein
namestringJa
team_namestringNein
allowed_originsstring[]Nein

Antwort

NameTypErforderlichWas es ist
idstringJa
site_idstringJa
namestringJa
public_keystringJa
enabledbooleanJaWhether the chat renders. Created FALSE always: the plugin ships in the deploy footprint of every WordPress site we host, so a widget may exist for a customer who never asked fo…
allowed_originsstring[]JaOrigins the widget may be embedded on. An EMPTY list refuses every page rather than allowing any — this is the only control stopping somebody else's site opening conversations a…
tierstringJa
greetingstringJa
team_namestringJa
accent_colourstringJa
positionstring<left, right>Ja
hide_brandingbooleanJa
ai_enabledbooleanJa
offline_emailstringJa
business_hoursobjectNein
open_nowbooleanJa
ai_allowanceChatAiAllowanceJa
limitsobjectJa
premium_extra_codestringJaThe catalogue code to buy for the premium tier.

Fehler, die dieser Endpunkt zurückgeben kann

401 · 403 · 422