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"}'请求体
| Field | Type | Req | Default | Description |
|---|---|---|---|---|
| platform | string (telegram | slack | discord | wechat | whatsapp) | Y | — | |
| botToken | string | N | — | |
| chatId | string | N | — | |
| externalId | string | N | — |
响应示例
{
"ok": true,
"data": {
"bindingId": "bind-123",
"platform": "telegram",
"status": "pending"
}
}