Send Text Message
POSThttps://public.leadpattern.com/whatsapp/message/text
Send a plain text WhatsApp message to a contact.
- content.text is not required-checked by the API today — an empty body is rejected by WhatsApp, not by LeadPattern.
Headers
1 fieldAuthorizationstringrequired
Your API key. Sent raw (e.g. 'lp_...'). No Bearer prefix required.
Body Parameters
2 fieldstostringrequired
Recipient phone number in E.164 format (with country code).
contentobjectrequired
textstringrequired
Message text body.
previewUrlbooleanoptionaldefault:
falseRender a preview for links in the text.
Responses
JSON Response
{
"type": "success",
"data": {
"messageId": "wamid.abc123",
"status": "sent",
"recipient": "9195XXXXXXXX"
}
}Sample Request Body
{
"to": "+9195XXXXXXXX",
"content": {
"text": "Hello! How can I help you?",
"previewUrl": true
}
}
