发送消息

向客人发送文字或图像消息。

本接口不保证幂等,也不返回 message ID。 请求超时时,结果是不确定的——百居易无法确定渠道是否已经投递了该消息,这个不确定性在我们这一层无法解决,因此接口不提供幂等保证。如果收到报错,请适当地重试。我们的经验是,客人收到重复的消息好过客人收不到消息。

Path Params
string
required

会话的 ID。

Body Params
string

消息的文本内容。最大长度取决于不同渠道的限制。

string

JPEG 图像的 base64 编码字符串。

Response

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json