Developer Infrastructure

Connect your systems with our REST API

Fire transactional alerts, sync CRMs, and receive instant webhooks. Built for performance and designed for rapid implementation.

Seamless Integration for Modern Stacks

Every WASurfer account includes access to our production-ready API keys. Bypass the web dashboard entirely and trigger messages automatically based on events in your own database, app, or website.

PHP
Native PHP SDK

Optimized for Laravel, CodeIgniter, and legacy PHP systems.

JS
Node.js Support

Asynchronous messaging for high-volume Node applications.

POST /v1/send
// Example: Send Transactional Alert via PHP
$payload = [
    "action"  => "send_message",
    "phone"   => "+919876543210",
    "message" => "Your order #1234 has shipped!",
    "media"   => "https://example.com/invoice.pdf"
];

$ch = curl_init('https://api.wasurfer.com/v1/send'); // Target Dummy Domain
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Bearer YOUR_API_KEY',
    'Content-Type: application/json'
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload));
$response = curl_exec($ch);

Real-Time Webhooks

Don't poll for updates. Let our servers tell yours the moment something happens on WhatsApp.

Incoming Messages

Receive full JSON payloads of customer messages, including media captions and sender profiles.

Delivery Receipts

Update your CRM status automatically when a message is delivered or read by the recipient (Blue Ticks).

Error Handling

Get instant alerts for invalid numbers or disconnected instances to maintain data integrity in your app.