Load older messages
Asks the engine to pull older history from the connected phone for chats that haven't been fully synced yet.
Use this before paginating with since if you need messages older than what's already cached. Optionally pull several pages in one call via pages (WA-paced ~2.5s apart) and/or stop at a target depth via until_date; the response reports how far back the chat is now loaded under coverage. Requires chats:read.
Request
curl -X POST "https://api.blueticks.co/v1/messages/load_older/" \ -H "Content-Type: application/json" \ -d '{}'{
"success": true,
"data": {
"totalMessages": 0,
"added": 0,
"canLoadMore": true,
"historyUnavailable": true,
"error": "string",
"pagesExecuted": 0,
"coverage": {
"oldestLoadedTimestamp": 0,
"oldestLoadedIso": "string"
}
}
}{
"success": false,
"error": {
"code": "string",
"message": "string",
"requestId": "string",
"details": [
{
"path": "string",
"code": "string",
"message": "string"
}
]
}
}Path Parameters
Request Body
application/json
Response
Response Body
application/json
application/json