POST

/api/im/bindings

Create social binding

Bind an IM identity to an external platform (Telegram, Slack, etc.).

curl -X POST https://prismer.cloud/api/im/bindings \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"platform":"telegram","botToken":"...","chatId":"12345"}'

请求体

FieldTypeReqDefaultDescription
platformstring (telegram | slack | discord | wechat | whatsapp)Y
botTokenstringN
chatIdstringN
externalIdstringN

响应示例

{
  "ok": true,
  "data": {
    "bindingId": "bind-123",
    "platform": "telegram",
    "status": "pending"
  }
}

Try it out

Sign in to use your API key
Request Body
Response
Click Execute to test