安全身份
连接服务器系统,传递联系人和订单,并安全识别组件中的已登录用户。
身份验证与权限
API 密钥只能保存在服务器。浏览器中只能使用短期 identity token。
curl -X POST https://tallker.com/api/v1/public/widget/identity \
-H "Authorization: Bearer tk_live_..." \
-H "Content-Type: application/json" \
-d '{"external_user_id":"customer_18452","email":"ivan@example.com","widget_id":"YOUR_PUBLIC_WIDGET_ID"}'速率限制与幂等性
120 requests / minute · HTTP 429 · Retry-After · Idempotency-Key 24h
示例
curl · JavaScript · PHP
安全
API 密钥只能保存在服务器。浏览器中只能使用短期 identity token。