Integrate WhatsApp into your existing stack in minutes. Simple HTTP requests for messages, media, and location. Built for Pakistani developers.
Whether it's a simple PHP website, a complex React app, or an enterprise ERP system — Postabi's REST API makes integration seamless. No webhooks required for basic sending.
Our API infrastructure handles the heavy lifting, ensuring your messages are delivered even during peak traffic hours in Pakistan.
Use these parameters to send messages via our REST API. We support Text, Image, Video, and Documents.
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://postab.site/api/whatsapp-web/send-message',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => array(
'app_key' => 'YOUR_APP_KEY',
'auth_key' => 'YOUR_AUTH_KEY',
'to' => 'RECEIVER_NUMBER',
'message' => 'Example message',
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
{
"status": "Success",
"data": {
"from": "SENDER_NUMBER",
"to": "RECEIVER_NUMBER",
"status_code": 200
}
}
Method: POST
Endpoint: https://postab.site/api/whatsapp-web/send-message