Skip to main content
POST
/
api
/
5
/
user
/
chat_send
chat_send
curl --request POST \
  --url https://sg.sobot.io/api/5/user/chat_send \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "partnerid": "<string>",
  "content": "<string>",
  "msg_type": "<string>",
  "appoint_cid": "<string>",
  "appoint_msgid": "<string>"
}
'

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
partnerid
string

对接ID,需要保证唯一性

content
string

消息内容

msg_type
string

消息类型:(text、image、voice、video 默认为 text 纯文本,如果为 image 和 voice、video 的时候,content 传递图片地址或者音频、视频地址,其中音频支持 mp3、wav 两种格式)

appoint_cid
string

引用消息的会话id

appoint_msgid
string

引用消息的消息id

Response

200

No Content