live-chat

POST /v1/chat/widgets

Create a chat for a site.

כל נקודות הקצה מסוג live-chat

אימות

שלחו מפתח API כאסימון נושא (bearer token). על המפתח לכלול את הרשאה livechat.manage; מפתח שאינו כולל אותה יידחה בסטטוס 403, ולא 404.

המקום שבו מזהה הארגון שלך נכנס

נקודת קצה זו מקבלת את org_id כשדה בגוף ה-JSON.

מזהה הארגון שלך נמצא במסוף מפתחות ה-API בלוח הבקרה שלך, לצד המפתח עצמו. זהו אותו מזהה בכל קריאה שאתה מבצע.

נסה זאת

החלף כל דבר בסוגריים זוויתיים בערכים משלך, ואת מציין מיקום המפתח במפתח מלוח הבקרה שלך.

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

מחובר? קונסולת ה-API בלוח הבקרה שלך מזינה את מזהה הארגון האמיתי שלך ואת המפתח שלך, ומריצה את הבקשה מול ה-API הפיזי כך שתוכל לראות את התגובה בפועל. פתח נקודת קצה זו במסוף ה-API

פרטים

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.

גוף הבקשה

שםסוגנדרשמה זה
org_idstringלא
site_idstringלא
namestringכן
team_namestringלא
allowed_originsstring[]לא

תשובה

שםסוגנדרשמה זה
idstringכן
site_idstringכן
namestringכן
public_keystringכן
enabledbooleanכןWhether 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[]כןOrigins 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…
tierstringכן
greetingstringכן
team_namestringכן
accent_colourstringכן
positionstring<left, right>כן
hide_brandingbooleanכן
ai_enabledbooleanכן
offline_emailstringכן
business_hoursobjectלא
open_nowbooleanכן
ai_allowanceChatAiAllowanceכן
limitsobjectכן
premium_extra_codestringכןThe catalogue code to buy for the premium tier.

שגיאות שנקודה קצה זו עשויה להחזיר

401 · 403 · 422