live-chat

GET /v1/chat/widgets/{widgetId}

One chat's settings and its AI allowance.

Svi live-chat krajnji točke

Sva developerska dokumentacija

Autentifikacija

Pošaljite API ključ kao nosivi token. Ključ mora imati dozvolu livechat.view; ključ bez nje se odbija s kodom 403, a ne 404.

Ova krajnja točka ne prihvaća ID organizacije. Vaš ključ već identificira organizaciju kojoj pripada, a odgovor je ograničen na nju.

Isprobajte

Zamijenite sve unutar šiljastih zagrada svojim vlastitim vrijednostima, a rezervirano mjesto za ključ s ključem iz vaše nadzorne ploče.

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

Prijavljeni ste? API konzola na vašoj nadzornoj ploči automatski unosi stvarni ID vaše organizacije i vaš vlastiti ključ te šalje zahtjev prema aktivnom API-ju kako biste mogli vidjeti stvarni odgovor. Otvori ovu krajnju točku u API konzoli

Pojedinosti

Requires livechat.view or livechat.manage.

Parametri

NazivVrstaObaveznoŠto je to
widgetId (path)stringDa

Odgovor

NazivVrstaObaveznoŠto je to
idstringDa
site_idstringDa
namestringDa
public_keystringDa
enabledbooleanDaWhether 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[]DaOrigins 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…
tierstringDaThe 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>DaWhy 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_tierstringDaThe tier actually PAID for, independent of any hosting inclusion.
greetingstringDa
team_namestringDa
accent_colourstringDa
positionstring<left, right>Da
hide_brandingbooleanDa
ai_enabledbooleanDa
offline_emailstringDa
business_hoursobjectNe
open_nowbooleanDa
ai_allowanceChatAiAllowanceDa
limitsobjectDa
premium_extra_codestringDaThe catalogue code to buy for the premium tier.

Pogreške koje ova krajnja točka može vratiti

401 · 403 · 404