WhatsApp API for Laravel
Uses Laravel's HTTP client. Put the key in config/services.php and .env. There is no official SDK, just one HTTP request.
Send a message with Laravel
use Illuminate\Support\Facades\Http;
$response = Http::withHeaders(['x-api-key' => config('services.quackapi.key')])
->timeout(15)
->post('https://quackapi.com/v1/messages/chat', [
'deviceId' => 1,
'to' => '923001234567',
'body' => 'Hello from QuackAPI',
]);
$response->throw(); // throws on 4xx/5xx
$messageId = $response->json('messageId');Before you run it
- Connect a device and use its numeric id as deviceId.
- Set QUACKAPI_KEY to your wa_ key.
- Run this on a server. Never ship the key to a browser or app.
Handling errors
Non-2xx responses carry a JSON message. See the errors page for what each code means and which to retry.
Related
Last reviewed 2026-11-09. QuackAPI is an unofficial linked-device service. Acceptable use