ავტორიზაცია

API გასაღები გაგზავნეთ როგორც მატარებელი ტოკენი (bearer token). გასაღებს უნდა ჰქონდეს livechat.manage ნებართვა; ამის გარეშე გასაღები უარყოფილი იქნება 403 და არა 404 სტატუსით.

ეს ბოლო წერტილი არ იღებს ორგანიზაციის იდენტიფიკატორს. თქვენი გასაღები უკვე აიდენტიფიცირებს იმ ორგანიზაციას, რომელსაც ის ეკუთვნის, და პასუხი შემოფარგლულია მისით.

სცადეთ

შეSubstituted any value inside angle brackets with your own and the key placeholder with a key from your dashboard.

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

შესული ხართ? თქვენი სამართავ პანელში არსებული API კონსოლი ავტომატურად ამატებს თქვენი რეალური ორგანიზაციის ID-სა და საკუთარ გასაღებს და ატარებს მოთხოვნას ცოცხალ API-ს წინააღმდეგ, რათა იხილოთ რეალური პასუხი. გაAღით ეს ენდპოინტი API კონსოლში

დეტალები

Requires livechat.manage. Switching a widget on with no allowedOrigins is refused with 422 rather than accepted: the widget only answers pages on origins the customer listed, so an empty list would leave the chat live, looking configured, and invisible on every page with nothing saying why.

პარამეტრები

სახელიტიპისავალდებულორა არის ეს
widgetId (path)stringდიახ

მოთხოვნის სხეული

სახელიტიპისავალდებულორა არის ეს
namestringარა
enabledbooleanარა
allowed_originsstring[]არა
greetingstringარა
team_namestringარა
accent_colourstringარა
positionstring<left, right>არა
hide_brandingbooleanარა
ai_enabledbooleanარა
offline_emailstringარა
business_hoursobjectარა

პასუხი

სახელიტიპისავალდებულორა არის ეს
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 for…
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…
tierstringდიახThe tier this widget is EFFECTIVELY on. Premium is included free with Zinn® hosting, so this may read premium on a widget nobody has paid for — read purchased_tier for what…
tier_sourcestring<free, purchase, hosting>დიახWhy the widget is on that tier. hosting means it is included with the customer's Zinn® hosting and there is nothing to buy; purchase means the Premium extra was bought for…
purchased_tierstringდიახThe tier actually PAID for, independent of any hosting inclusion.
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 · 404 · 422