Developer API & Integration Guide
Complete guide for integrating WhatsApp automation, PDF invoice dispatch, status verification, and incoming webhooks into Laravel, Node.js, PHP, or Python applications.
https://sachalabdullah.shop
Every API request must include your Client API Key in the HTTP Request Header:
Check if the WhatsApp line is currently connected. If disconnected, it returns the raw QR string and a browser connection link so you can display the QR code directly to the user.
Response Example (When Connected):
Response Example (When Disconnected / QR Available):
Dispatch text messages, attached PDF documents (Multipart), or In-Memory Base64 PDFs (DomPDF) to any WhatsApp number.
| Field | Type | Requirement | Description |
|---|---|---|---|
| phone | string | Required | Recipient phone number (e.g. 923001234567 or 03001234567) |
| file | file | Optional | PDF or Image binary file for Multipart upload |
| media_base64 | string | Optional | Base64 encoded string of the PDF (for in-memory DomPDF dispatch) |
| filename | string | Optional | Custom name for the document (e.g. Invoice_1024.pdf) |
| caption / message | string | Optional | Accompanying message text or document caption |
Send bulk announcements with automated humanized randomized jitter and batch resting protection.
Create app/Services/WhatsAppGatewayService.php in your Laravel project: