live-chat

GET /v1/chat/widgets/{widgetId}

One chat's settings and its AI allowance.

Tutti gli endpoint live-chat

Autenticazione

Invia una chiave API come token di tipo bearer. La chiave deve disporre dell'autorizzazione livechat.view; una chiave sprovvista di tale autorizzazione viene rifiutata con 403 anziché 404.

Questo endpoint non richiede alcun ID organizzazione. La tua chiave identifica già l'organizzazione a cui appartiene e la risposta è limitata ad essa.

Provalo

Sostituisci qualsiasi elemento tra parentesi angolari con i tuoi valori e il segnaposto key con una chiave dalla tua dashboard.

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

Hai effettuato l'accesso? La console API nella tua dashboard inserisce il tuo ID organizzazione reale e la tua chiave personale, ed esegue la richiesta sull'API live in modo da poter vedere la risposta effettiva. Apri questo endpoint nella console API

Dettagli

Requires `livechat.view` or `livechat.manage`.

Parametri

NomeTipoObbligatorioChe cos'è
widgetId (path)string

Risposta

NomeTipoObbligatorioChe cos'è
idstring
site_idstring
namestring
public_keystring
enabledbooleanWhether 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_hoursobjectNo
open_nowboolean
ai_allowanceChatAiAllowance
limitsobject
premium_extra_codestringThe catalogue code to buy for the premium tier.

Errori che questo endpoint può restituire

401 · 403 · 404