live-chat

GET /v1/chat/widgets/{widgetId}

One chat's settings and its AI allowance.

Tüm live-chat uç noktaları

Tüm geliştirici belgeleri

Kimlik Doğrulama

Bearer token olarak bir API anahtarı gönderin. Anahtar livechat.view iznine sahip olmalıdır; bu izne sahip olmayan bir anahtar 404 ile değil, 403 ile reddedilir.

Bu uç nokta hiçbir organizasyon kimliği almaz. Anahtarınız zaten ait olduğu organizasyonu tanımlar ve yanıt bu organizasyonla sınırlandırılır.

Dene

Köşeli parantez içindeki her şeyi kendi değerlerinizle ve anahtar yer tutucusunu panonuzdan bir anahtarla değiştirin.

curl -X GET https://api.zinndigital.com/v1/chat/widgets/{widgetId} \
  -H "Authorization: Bearer zdk_live_…"

Oturum açtınız mı? Panonuzdaki API konsolu, gerçek organizasyon kimliğinizi ve kendi anahtarınızı otomatik olarak doldurur ve isteği canlı API üzerinde çalıştırarak gerçek yanıtı görmenizi sağlar. Bu uç noktayı API konsolunda açın

Ayrıntılar

Requires livechat.view or livechat.manage.

Parametreler

AdTürZorunluNe olduğu
widgetId (path)stringEvet

Yanıt

AdTürZorunluNe olduğu
idstringEvet
site_idstringEvet
namestringEvet
public_keystringEvet
enabledbooleanEvetWhether 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[]EvetOrigins 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…
tierstringEvetThe 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>EvetWhy 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_tierstringEvetThe tier actually PAID for, independent of any hosting inclusion.
greetingstringEvet
team_namestringEvet
accent_colourstringEvet
positionstring<left, right>Evet
hide_brandingbooleanEvet
ai_enabledbooleanEvet
offline_emailstringEvet
business_hoursobjectHayır
open_nowbooleanEvet
ai_allowanceChatAiAllowanceEvet
limitsobjectEvet
premium_extra_codestringEvetThe catalogue code to buy for the premium tier.

Bu uç noktanın dönderebileceği hatalar

401 · 403 · 404