All Chat
The All Chat endpoint allows users to retrieve a complete list of all chats that have occurred within their WhatsApp channel. This endpoint provides an overview of the chat history, including details about each chat session. The response typically includes metadata such as chat IDs, contact information, and timestamps of recent activity. This functionality is essential for applications that need to display or manage the entire chat history, enabling developers to integrate chat retrieval features seamlessly into their platforms. It provides a foundational view of all ongoing and past conversations within the channel.
Request
- Base URLhttps://api.crunchz.app/api
- AuthOAuth 2Client credentialsToken URLhttps://example.com/oauth2/token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Limit of the chat to display
Offset chat to display
Response
200
Example response
{
"success": true,
"message": "OK",
"data": [
{
"id": "6281357541790@c.us",
"type": "user",
"metadata": {
"contact_id": "6281357541790@c.us",
"phone_number": "+62 813-5754-1790"
},
"timestamp": {
"conversation": 1725972581
}
}
]
}Changes
No recorded changes to this operation across all 2 revisions of this API.