Batch Send Messages
POSThttps://public.leadpattern.com/whatsapp/message/batch
Send one request to multiple recipients, each with its own message type and content (text, image, document, audio, video, location). Each recipient counts as one request against the API key's per-minute rate limit.
- Consumes messages.length rate-limit units, not one.
Headers
1 fieldAuthorizationstringrequired
Your API key. Sent raw (e.g. 'lp_...'). No Bearer prefix required.
Body Parameters
1 fieldmessagesarray of objectsrequired
Batch of messages, one per recipient (non-empty).
tostringrequired
Recipient phone number in E.164 format (with country code).
typeenumrequired
Message type.
Allowed values:
textimagedocumentaudiovideolocationcontentobjectrequired
Content shape depends on type — same as the matching single-send endpoint.
Responses
JSON Response
{
"type": "success",
"data": {
"messages": [
{
"status": "SENT",
"recipient": "9195XXXXXXXX",
"messageId": "wamid.abc123"
},
{
"status": "SENT",
"recipient": "9196XXXXXXXX",
"messageId": "wamid.def456"
}
]
}
}Sample Request Body
{
"messages": [
{
"to": "+9195XXXXXXXX",
"type": "text",
"content": {
"text": "Hello!"
}
},
{
"to": "+9196XXXXXXXX",
"type": "image",
"content": {
"url": "https://example.com/promo.jpg",
"caption": "Check this out!"
}
}
]
}
