live-chat
GET /v1/chat/widgets/{widgetId}
One chat's settings and its AI allowance.
Authentification
Envoyez une clé API en tant que jeton du porteur. La clé doit posséder l'autorisation livechat.view ; une clé qui ne l'a pas est refusée avec le code 403, et non 404.
Cet endpoint ne prend aucun identifiant d'organisation. Votre clé identifie déjà l'organisation à laquelle elle appartient, et la réponse y est limitée.
Essayer
Remplacez tout ce qui se trouve entre crochets par vos propres valeurs, et le espace réservé à la clé par une clé de votre tableau de bord.
curl -X GET https://api.zinndigital.com/v1/chat/widgets/{widgetId} \
-H "Authorization: Bearer zdk_live_…"Connecté ? La console d'API de votre tableau de bord saisit votre véritable ID d'organisation ainsi que votre propre clé, et exécute la requête sur l'API de production afin que vous puissiez voir la réponse réelle. Ouvrir ce point de terminaison dans la console API
Détails
Requires livechat.view or livechat.manage.
Paramètres
| Nom | Type | Obligatoire | Qu'est-ce que c'est |
|---|---|---|---|
widgetId (path) | string | Oui | — |
Réponse
| Nom | Type | Obligatoire | Qu'est-ce que c'est |
|---|---|---|---|
id | string | Oui | — |
site_id | string | Oui | — |
name | string | Oui | — |
public_key | string | Oui | — |
enabled | boolean | Oui | 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_origins | string[] | Oui | 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… |
tier | string | Oui | 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_source | string<free, purchase, hosting> | Oui | 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_tier | string | Oui | The tier actually PAID for, independent of any hosting inclusion. |
greeting | string | Oui | — |
team_name | string | Oui | — |
accent_colour | string | Oui | — |
position | string<left, right> | Oui | — |
hide_branding | boolean | Oui | — |
ai_enabled | boolean | Oui | — |
offline_email | string | Oui | — |
business_hours | object | Non | — |
open_now | boolean | Oui | — |
ai_allowance | ChatAiAllowance | Oui | — |
limits | object | Oui | — |
premium_extra_code | string | Oui | The catalogue code to buy for the premium tier. |
Erreurs que cet point de terminaison peut renvoyer
401 · 403 · 404