live-chat

POST /v1/chat/widgets

Create a chat for a site.

Dukkan live-chat wuraren ƙarshe

Dukan takardun mai haɓakawa

Tabbatar da Asali

Aika maɓallin API azaman alamar ɗauka (bearer token). Dole ne maɓallin ya kasance yana da izinin livechat.manage; idan babu shi, za a ƙi amfani da maɓallin tare da lambar 403, ba 404 ba.

Inda ID ɗin kungiyar ku ke zuwa

Wannan ma'ajiyar tana karɓar org_id a matsayin fili a cikin jikin JSON.

Ana samun lambar kungiyar ku a kan shafin maɓallan API a cikin madanninku, kusa da maɓallin kansa. Shi ne lambar da ta dace a kowane kiran da kuka yi.

Gwada

May gurbin komai da ke cikin kusurwa da ƙimar ka, kuma may gurbin maballi da maballi daga allon sarrafa ka.

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

An shiga? Na'urar sarrafa API da ke cikin sashin kulawarka tana cika ainihin lambar ƙungiyarka da maɓallinka naka, sannan tana gudanar da buƙatar a kan ainihin API don haka zaka iya ganin amsar gaske. Buɗe wannan tashar a cikin na'urar kula da API

Bayani

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.

Jikin buƙata

SunaNau'iAna buƙataAbin da yake
org_idstringA'a
site_idstringA'a
namestringEh
team_namestringA'a
allowed_originsstring[]A'a

Martani

SunaNau'iAna buƙataAbin da yake
idstringEh
site_idstringEh
namestringEh
public_keystringEh
enabledbooleanEhWhether 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[]EhOrigins 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…
tierstringEhThe 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>EhWhy 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_tierstringEhThe tier actually PAID for, independent of any hosting inclusion.
greetingstringEh
team_namestringEh
accent_colourstringEh
positionstring<left, right>Eh
hide_brandingbooleanEh
ai_enabledbooleanEh
offline_emailstringEh
business_hoursobjectA'a
open_nowbooleanEh
ai_allowanceChatAiAllowanceEh
limitsobjectEh
premium_extra_codestringEhThe catalogue code to buy for the premium tier.

Kuskuren da wannan matsaya za ta iya maido wa

401 · 403 · 422