Skip to main content
POST
Sync message history to Chatwoot

Authorizations

Authorization
string
header
required

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

Body

application/json
device_id
string

Device ID to sync (uses CHATWOOT_DEVICE_ID if not specified)

days_limit
integer
default:3

Number of days of history to sync

include_media
boolean
default:true

Include media attachments in sync

include_groups
boolean
default:true

Include group chats in sync

Response

Sync initiated successfully

status
integer
Example:

200

code
string
Example:

"SYNC_STARTED"

message
string
Example:

"History sync initiated in background"

results
object