WhatsApp API

Link your WhatsApp by scanning a QR code, get an API token, and send messages from your own number.

Link your WhatsApp

Getting a QR code…

WhatsApp QR code

On your phone: WhatsApp → Settings → Linked devices → Link a device, then point the camera at this code.

Already have a token?

Paste your API token to manage your linked number in this browser.

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

AuthorizationHeader: Bearer YOUR_TOKEN
toPhone number with country code, digits only (e.g. 923001234567)
textThe 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).