public

GET /v1/public/chat-agents/{publicKey}/config

What the widget on a customer's website needs in order to draw itself.

Minden public végpont

Az összes fejlesztői dokumentáció

Hitelesítés

Ez a végpont nyilvános. Nem igényel hitelesítő adatot és szervezetet sem – ezt olvassa a saját marketingoldalunk és az MI-válaszadó motorunk is.

Ez a végpont nem fogad el szervezeti azonosítót. Az Ön kulcsa már azonosítja azt a szervezetet, amelyhez tartozik, és a válasz is erre vonatkozik.

Próbálja ki

Cserélje ki a hegyes zárójelek közötti részt a saját értékeivel, a kulcshelyőrzőt pedig a vezérlőpultján található kulccsal.

curl -X GET https://api.zinndigital.com/v1/public/chat-agents/{publicKey}/config

Be van jelentkezve? A vezérlőpultban lévő API-konzol kitölti a valós szervezetazonosítóját és a saját kulcsát, és a kérést az éles API-n futtatja, hogy láthassa a tényleges választ. Nyissa meg ezt a végpontot az API konzolban

Részletek

Unauthenticated by necessity: a visitor on a customer's website has no account, and that is the product. Everything returned is already visible to whoever is reading that page — a name, a greeting and a colour. There is no secret here, no organisation id and no site id. ⛔ Answers 404 both when the key is unknown and when the calling Origin is not one the customer authorised. One answer for two causes, deliberately: a distinguishable refusal would tell a stranger that a key is real and merely mis-embedded, which is an enumeration oracle over every customer who owns this product.

Paraméterek

NévTípusKötelezőMi ez
publicKey (path)stringIgenThe agent's public key, as carried in the embed snippet.
locale (query)stringNemThe visitor's language tag (the page's lang, else the browser's). Chooses the language of strings; an unknown tag answers in English.

Válasz

NévTípusKötelezőMi ez
namestringIgen
greetingstringIgen
brand_colourstringNem
launcher_positionstring<left, right>Nem
handoff_enabledbooleanNem
stringsobjectNemThe widget's own words — button labels, placeholder, greeting fallback, error line — in the language asked for by ?locale= (the nearest of the 58 site locales, else English). ⛔…

Hibák, amelyeket ez a végpont visszaadhattatlan

404 · 429