Skip to content
Reference/Outgoing Messages/Send Text Message

Send Text Message

POSThttps://public.leadpattern.com/whatsapp/message/text
WhatsApp Connectedapplication/json60 req/min

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 field
Authorizationstring
required
Your API key. Sent raw (e.g. 'lp_...'). No Bearer prefix required.

Body Parameters

2 fields
tostring
required
Recipient phone number in E.164 format (with country code).
contentobject
required
textstring
required
Message text body.
previewUrlboolean
optionaldefault: false
Render a preview for links in the text.

Responses

Message accepted by WhatsApp.
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
  }
}