public

POST /v1/public/chat/{publicKey}/conversations

A visitor says something for the first time.

সমস্ত public এন্ডপয়েন্ট

সমস্ত ডেভেলপার ডকুমেন্টেশন

প্রমাণীকরণ

এই এন্ডপয়েন্টটি সর্বজনীন। এটি কোনো শংসাপত্র বা কোনো সংস্থা গ্রহণ করে না — এটি আমাদের নিজস্ব বিপণন সাইট এবং এআই উত্তর ইঞ্জিনগুলি যা পড়ে।

এই এন্ডপয়েন্টটি কোনো অর্গানাইজেশন আইডি নেয় না। আপনার কীটি ইতিমধ্যে এটি যে অর্গানাইজেশনের অন্তর্গত তা শনাক্ত করে এবং প্রতিক্রিয়াটি সেই অনুযায়ী নির্ধারিত হয়।

চেষ্টা করুন

কোণ বন্ধনীতে থাকা যেকোনো কিছু আপনার নিজস্ব মান দিয়ে এবং কী প্লেসহোল্ডারটি আপনার ড্যাশবোর্ডের একটি কী দিয়ে প্রতিস্থাপন করুন।

curl -X POST https://api.zinndigital.com/v1/public/chat/{publicKey}/conversations \
  -H "Content-Type: application/json" \
  -d '{ "message": <string> }'

লগ ইন করা আছে? আপনার ড্যাশবোর্ডের এপিআই কনসোল আপনার আসল অর্গানাইজেশন আইডি এবং আপনার নিজের কি পূরণ করে দেয়, এবং লাইভ এপিআই-এর বিপরীতে অনুরোধটি চালায় যাতে আপনি প্রকৃত প্রতিক্রিয়া দেখতে পান। এই এন্ডপয়েন্টটি এপিআই কনসোলে খুলুন

বিবরণ

Anonymous. Opens a conversation and writes the visitor's first message, then lets the assistant answer it inline if the customer has AI switched on. The response carries a visitorToken once and never again. It is a bearer secret — the only thing standing between one visitor and another's transcript on the same site — so the widget keeps it in the visitor's own storage and presents it in X-Zinn-Chat-Token on every subsequent call. It is never accepted in a query string, because a query string is written to every access log.

পরামিতি

নামধরনআবশ্যকএটি কী
publicKey (path)stringহ্যাঁThe widget's public key. Public by design — it ships in the page source of every site that embeds the widget — so it NAMES a widget and authorises nothing; the Origin header is…

অনুরোধের বডি

নামধরনআবশ্যকএটি কী
messagestringহ্যাঁ
page_urlstringনা
page_titlestringনা
referrerstringনা
localestringনা
namestringনা
emailstringনা

প্রতিক্রিয়া

নামধরনআবশ্যকএটি কী
statestring<ai, waiting, open, offline, closed>হ্যাঁ
cursorintegerহ্যাঁ
poll_after_msintegerহ্যাঁHow long the widget should wait before asking again. Decided by the SERVER on every response, because a cadence baked into the widget is cached on somebody else's site behind…
messagesChatMessage[]হ্যাঁ
conversation_idstringহ্যাঁ
visitor_tokenstringহ্যাঁReturned ONCE and never again. A bearer secret — the only thing between one visitor and another's transcript on the same site — presented afterwards in X-Zinn-Chat-Token, never…

এই এন্ডপয়েন্ট থেকে যেসব ত্রুটি আসতে পারে

404 · 422 · 429