Sync Conversation History
curl --request POST \
--url https://api.example.com/api/v1/conversations/{conversation_id}/sync-history \
--header 'Content-Type: application/json' \
--data '
{
"limit": 100,
"request_remote_sync": false,
"remote_sync_count": 50
}
'import requests
url = "https://api.example.com/api/v1/conversations/{conversation_id}/sync-history"
payload = {
"limit": 100,
"request_remote_sync": False,
"remote_sync_count": 50
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({limit: 100, request_remote_sync: false, remote_sync_count: 50})
};
fetch('https://api.example.com/api/v1/conversations/{conversation_id}/sync-history', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"remote_jid": "<string>",
"fetched": 123,
"inserted": 123,
"skipped_existing": 123,
"skipped_invalid": 123,
"message": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}conversations
Sync Conversation History
Merge WuzAPI chat history into this conversation (idempotent).
History rows are identified by WhatsApp message id and never treated as
brand-new inbound events: no unread bump, no agent auto-reply, no
message.received webhooks. Existing engine messages are skipped.
POST
/
api
/
v1
/
conversations
/
{conversation_id}
/
sync-history
Sync Conversation History
curl --request POST \
--url https://api.example.com/api/v1/conversations/{conversation_id}/sync-history \
--header 'Content-Type: application/json' \
--data '
{
"limit": 100,
"request_remote_sync": false,
"remote_sync_count": 50
}
'import requests
url = "https://api.example.com/api/v1/conversations/{conversation_id}/sync-history"
payload = {
"limit": 100,
"request_remote_sync": False,
"remote_sync_count": 50
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({limit: 100, request_remote_sync: false, remote_sync_count: 50})
};
fetch('https://api.example.com/api/v1/conversations/{conversation_id}/sync-history', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"remote_jid": "<string>",
"fetched": 123,
"inserted": 123,
"skipped_existing": 123,
"skipped_invalid": 123,
"message": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Body
application/json