Text messages
DocsAPI referenceAdvanced
Free-form text can be sent only while the 24-hour window is open — that is, within 24 hours of the customer’s last message to you.
| Field | Type | Description |
|---|---|---|
text |
string | Up to 4,096 characters. WhatsApp formatting works: *bold*, _italic_, ~strike~, ```mono```. You may also send {"body": "…"} as in Meta’s API. |
preview_url |
boolean | Show a link preview for the first URL in the text. Default false. |
curl https://login.meapi.in/api/v1/messages \ -H "Authorization: Bearer $MEAPI_KEY" -H "Content-Type: application/json" \ -d '{ "to": "+919812345678", "type": "text", "text": "Your order #10245 has shipped 🚚 Track it: https://example.com/t/10245", "preview_url": true }'await fetch('https://login.meapi.in/api/v1/messages', { method: 'POST', headers: { Authorization: `Bearer ${process.env.MEAPI_KEY}`, 'Content-Type': 'application/json' }, body: JSON.stringify({ to: '+919812345678', type: 'text', text: 'Your order #10245 has shipped 🚚' }),});<?php$payload = ['to' => '+919812345678', 'type' => 'text', 'text' => 'Your order #10245 has shipped 🚚'];$ch = curl_init('https://login.meapi.in/api/v1/messages');curl_setopt_array($ch, [CURLOPT_POST => true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . getenv('MEAPI_KEY'), 'Content-Type: application/json'], CURLOPT_POSTFIELDS => json_encode($payload)]);echo curl_exec($ch);requests.post("https://login.meapi.in/api/v1/messages", headers={"Authorization": f"Bearer {MEAPI_KEY}"}, json={"to": "+919812345678", "type": "text", "text": "Your order #10245 has shipped 🚚"}, timeout=30)If the window is closed you get 409 WINDOW_CLOSED; send a template instead.
Was this page helpful?
Thank you — we read every comment.
Could not send right now. Please try again later.
© 2026 MeAPI by TheWebStore028 · RADHAMADHAV WEBSTORE LLP · GSTIN 27ABJFR6148J1ZO · Contact us ·Cookie settings