跳转到主要内容
GET
获取聊天列表

授权

Authorization
string
header
必填

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

请求头

X-Device-Id
string

多设备支持的设备标识符。 当多个设备被注册时需要. 如果只有一个设备被注册,它将被用作默认。 也可以以 device_id 查询参数提供。

示例:

"my-device-id"

查询参数

limit
integer
默认值:25

要返回的最大聊天数

必填范围: x <= 100
offset
integer
默认值:0

要跳过的聊天数 (用于分页)

按名称搜索聊天

has_media
boolean
默认值:false

过滤包含媒体消息的聊天

archived
boolean

按存档状态过滤。 true = 仅存档, false = 非存档。 不要退回所有聊天。

响应

好的

code
string
示例:

"SUCCESS"

message
string
示例:

"Success get chat list"

results
object