- 后台接口
- 客服
- 消息列表
- 客服会话
- im配置
- 会员等级
- 会员消息管理
- 会员企业认证
- 会员管理
- 会员留言
- 订单配置
- 配送类型
- 运费模板
- 地区管理
- 消息分类
- 邮箱模板管理
- 配送方式配置信息
- 许可证
- 相册图片管理
- 相册管理
- 友情链接
- 配置管理
- 区号管理
- 库存日志
- 分销商品
- 分销业绩订单结算
- 分销员分组
- 分销内容管理
- 分销模式设置
- 素材分类
- 微信直播
- 限时折扣
- 积分签到
- 限时秒杀
- 充值余额
- 营销管理
- 满减活动
- 活动赠品
- 积分商品
- 优惠券
- 商品服务
- 商品分组
- 商品
- 商品属性模板
- 电子卡券组
- 电子卡券
- 评价管理
- 商品分类
- 品牌
- 订单商品
- 订单管理
- 售后管理
- 管理员消息
- 商家账户表
- 店铺商品分类表
- 店铺表
- 商家表
- 入驻申请
- 商户账户
- 登录控制器
- 翻译管理
- 语言关联
- 语言列表
- 货币管理
- 提现申请
- 充值记录
- 发票资质
- 退款记录
- 退款申请
- 交易日志
- 发票申请
- 示例
- 首页分类栏
- 售后申请表
- 装修组件
- 页面管理
- 文章分类
- 文章
- 供应商管理
- 权限
- 管理员列表
- 角色
- 文件访问控制器
- 会员积分日志
- 访问统计控制器
- 销售统计控制器
- 面板控制器
- 店铺资金变化
- 账户总览
- 管理员日志
- 店铺员工管理
- 店铺订单配置
- 视频相册信息后台管理接口
- 视频相册后台管理接口
- 客户端接口
发送消息
POST
/im/conversation/message/send
消息列表
请求参数
Header 参数
Authorization
string
可选
默认值:
Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJpYXQiOjE3NDM2NjM0MjYsImlzcyI6InRpZ3Nob3AiLCJzdWIiOiJkZW1vIiwiZXhwIjoxNzQ2MjU1NDI2LCJ1c2VybmFtZSI6ImRlbW8iLCJ1c2VySWQiOjE1NiwiaXNBZG1pbiI6dHJ1ZX0.6dmoDv3pjIMsz6Lj4nB_Z6q_XwLHYDV8iyYKAw83nYNel2RTvxvZbabB0JQl1a75ifKSR_-jynOZjNe-Uz_gfQ
Body 参数application/json
发送消息参数
conversationId
integer <int32>
会话id
userId
integer <int32>
用户id
content
object (ContentVO)
消息内容
messageType
string
消息类型
content
string
内容
pic
string
图片
contentCategory
string
消息分类
order
object (OrderInfoVO)
订单信息
product
object (ProductInfoVO)
商品信息
shopId
integer <int32>
店铺id
type
integer <int32>
消息类型
servantId
integer <int32>
客服id
userFrom
string
消息来源
示例
{
"conversationId": 0,
"userId": 0,
"content": {
"messageType": "string",
"content": "string",
"pic": "string",
"contentCategory": "string",
"order": {
"messageType": "string",
"orderId": 0,
"orderSn": "string",
"picUrl": "string",
"productName": "string",
"productNum": 0,
"totalAmount": 0,
"orderStatusName": "string"
},
"product": {
"messageType": "string",
"productId": 0,
"picUrl": "string",
"productName": "string",
"productSn": "string",
"productPrice": 0
}
},
"shopId": 0,
"type": 0,
"servantId": 0,
"userFrom": "string"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/im/conversation/message/send' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJpYXQiOjE3NDM2NjM0MjYsImlzcyI6InRpZ3Nob3AiLCJzdWIiOiJkZW1vIiwiZXhwIjoxNzQ2MjU1NDI2LCJ1c2VybmFtZSI6ImRlbW8iLCJ1c2VySWQiOjE1NiwiaXNBZG1pbiI6dHJ1ZX0.6dmoDv3pjIMsz6Lj4nB_Z6q_XwLHYDV8iyYKAw83nYNel2RTvxvZbabB0JQl1a75ifKSR_-jynOZjNe-Uz_gfQ' \
--header 'Content-Type: application/json' \
--data-raw '{
"conversationId": 0,
"userId": 0,
"content": {
"messageType": "string",
"content": "string",
"pic": "string",
"contentCategory": "string",
"order": {
"messageType": "string",
"orderId": 0,
"orderSn": "string",
"picUrl": "string",
"productName": "string",
"productNum": 0,
"totalAmount": 0,
"orderStatusName": "string"
},
"product": {
"messageType": "string",
"productId": 0,
"picUrl": "string",
"productName": "string",
"productSn": "string",
"productPrice": 0
}
},
"shopId": 0,
"type": 0,
"servantId": 0,
"userFrom": "string"
}'
返回响应
🟢200成功
*/*
Body
发送会话消息参数
messageTypeText
string
消息类型文本
id
integer <int32>
消息ID
conversationId
integer <int32>
会话ID
content
object (ContentVO)
消息内容
messageType
string
消息类型
content
string
内容
pic
string
图片
contentCategory
string
消息分类
order
object (OrderInfoVO)
订单信息
product
object (ProductInfoVO)
商品信息
messageType
string
消息类型
type
integer <int32>
类型
userId
integer <int32>
用户ID
servantId
integer <int32>
客服ID
sendTime
string
发送时间
status
integer <int32>
状态
extend
object
扩展信息
pushStatus
integer <int32>
推送状态
isRead
integer <int32>
是否已读
shopId
integer <int32>
店铺ID
userFrom
string
用户来源
user
object (UserVO)
用户信息
userId
integer <int32>
用户ID
username
string
用户名
nickname
string
昵称
avatar
string
头像
servant
object (ServantVO)
客服信息
adminId
integer <int32>
admin_id
username
string
客服名称
avatar
string
avatar
示例
{
"messageTypeText": "string",
"id": 0,
"conversationId": 0,
"content": {
"messageType": "string",
"content": "string",
"pic": "string",
"contentCategory": "string",
"order": {
"messageType": "string",
"orderId": 0,
"orderSn": "string",
"picUrl": "string",
"productName": "string",
"productNum": 0,
"totalAmount": 0,
"orderStatusName": "string"
},
"product": {
"messageType": "string",
"productId": 0,
"picUrl": "string",
"productName": "string",
"productSn": "string",
"productPrice": 0
}
},
"messageType": "string",
"type": 0,
"userId": 0,
"servantId": 0,
"sendTime": "string",
"status": 0,
"extend": {},
"pushStatus": 0,
"isRead": 0,
"shopId": 0,
"userFrom": "string",
"user": {
"userId": 0,
"username": "string",
"nickname": "string",
"avatar": "string"
},
"servant": {
"adminId": 0,
"username": "string",
"avatar": "string"
}
}
修改于 2025-04-22 06:09:08