跳转到主要内容
POST
同步消息历史记录到Chatwoot

授权

Authorization
string
header
必填

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

请求体

application/json
device_id
string

要同步的设备 ID (如果未指定则使用 CHATWOOT_DEVICE_ID)

days_limit
integer
默认值:3

要同步的历史天数

include_media
boolean
默认值:true

同步中包含媒体附件

include_groups
boolean
默认值:true

同步时包含群聊信息

响应

同步已成功启动

status
integer
示例:

200

code
string
示例:

"SYNC_STARTED"

message
string
示例:

"History sync initiated in background"

results
object