কথন
লগ ইনশুরু করুন
ডেভেলপার

নিজের পণ্যে কলিং যোগ করুন।

সহজ REST API, প্রতিটি ঘটনার জন্য ওয়েবহুক, আর যেকোনো সাইটে কল বোতাম বসানোর উইজেট।

1

কোড থেকে কল ও ক্যাম্পেইন শুরু

2

ট্রান্সক্রিপ্ট, ফল ও হস্তান্তরের ওয়েবহুক

3

এক স্ক্রিপ্ট ট্যাগে কল বোতাম

# list your agents and recent calls
curl https://api.YOUR-SITE/v1/agents \
  -H "Authorization: Bearer $KEY"
curl "https://api.YOUR-SITE/v1/calls?limit=20" \
  -H "Authorization: Bearer $KEY"

# start a call to a customer now
curl https://api.YOUR-SITE/v1/calls \
  -H "Authorization: Bearer $KEY" \
  -H "Content-Type: application/json" \
  -d '{ "to": "01712345678", "name": "Rahim",
        "goal": "Confirm the delivery address" }'
# -> { "request_id": 41, "status": "queued" }
curl https://api.YOUR-SITE/v1/call-requests/41 \
  -H "Authorization: Bearer $KEY"
POST https://your-server/hooks/kothon
X-Kothon-Event: call.ended
X-Kothon-Timestamp: 1767000000
X-Kothon-Signature: sha256=<hmac>

# signature = HMAC_SHA256(secret, timestamp + "." + body)
# reject requests older than 5 minutes
{ "event": "call.ended", "data": { "id": 120, "status": "completed",
  "duration_s": 74, "summary": { ... }, "request_id": 41 } }
<script src="https://YOUR-SITE/widget.js"
  data-key="kth_pub_…"
  data-api="https://api.YOUR-SITE"
  data-label="Talk to us" defer></script>

API কী, ওয়েবহুক ও কল বোতাম ড্যাশবোর্ডের “API and widget” পাতা থেকে তৈরি করুন।