WhatsApp API
Link your WhatsApp by scanning a QR code, get an API token, and send messages from your own number.
Connected as
Your API token
Keep it secret: anyone with this token can send messages from your number. Use it to log in from another browser.
Send a test message
API
POST
Authorization | Header: Bearer YOUR_TOKEN |
to | Phone number with country code, digits only (e.g. 923001234567) |
text | The message (up to 4,096 characters) |
Response
{ "ok": true, "id": "3EB0C4…" }
{ "ok": false, "error": "This number is not on WhatsApp." }
cURL
PHP
Check the connection
GET with the same header returns { "status": "connected", "phone": "+92…" }. Status is connected, starting, qr or disconnected (open this page and scan again).