Messages API
Send and receive WhatsApp messages via API.
Send Message
POST /messages/send
Body (Text):
{
"contactId": "123...",
"type": "text",
"content": "Hello from API!"
}
Body (Template):
{
"contactId": "123...",
"type": "template",
"templateName": "welcome_user",
"templateLanguage": "en",
"components": [
{
"type": "body",
"parameters": [
{ "type": "text", "text": "Customer Name" }
]
}
]
}
Get Message History
GET /messages/:contactId
Returns a paginated list of all messages exchanged with a specific contact.