Chats API
LeadPattern Chats API: 5 endpoints with request parameters, response schemas, error codes and cURL, Node.js and Python examples.
GETList Chats
/chats?page=1&limit=10Retrieve the chat inbox — one row per contact with their last message. Supports search, status (open|closed|unread|awaiting_reply), and tagId filters.POSTGet Chat / Message History/chats/conversationRetrieve the paginated message history for a single conversation.GETGet Message Details/whatsapp/message/:idRetrieve a single message by its database ID.DELETEDelete Message/whatsapp/message/:idSoft-delete a message. It's excluded from conversation history but retained for audit purposes.PATCHMark Chat as Read/chats/:waId/mark-readMark all delivered incoming messages in a conversation as read, and send a WhatsApp read receipt.
