{"developer": "focused"}
The Developer-Friendly WhatsApp REST API
Integrate WhatsApp into your existing stack in minutes. Simple HTTP requests for messages, media, and location. Built for Pakistani developers.
โ๏ธ Integration
Connect Anything to WhatsApp
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.
// Example PHP Snippet
$resp = post('https://api.postabi.com/send', [
'to' => '923001234567',
'msg' => 'Hello from Postabi!'
]);
Explore Full Documentation
$resp = post('https://api.postabi.com/send', [
'to' => '923001234567',
'msg' => 'Hello from Postabi!'
]);
Built for Stability
Our API infrastructure handles the heavy lifting, ensuring your messages are delivered even during peak traffic hours in Pakistan.
99.9%
Uptime Guarantee
HTTP/S
Secure RESTful API
๐ ๏ธ Technical Reference
WhatsApp Web API Integration
Use these parameters to send messages via our REST API. We support Text, Image, Video, and Documents.
CURL Request Example
$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;
Successful JSON Callback
{
"status": "Success",
"data": {
"from": "SENDER_NUMBER",
"to": "RECEIVER_NUMBER",
"status_code": 200
}
}
Method & Parameters
Method: POST
Endpoint: https://postab.site/api/whatsapp-web/send-message