Send your first message in 5 minutes
// Follow these four steps to create an account, connect your WhatsApp number, and send a message via the API.
Sign up for a free WSAPI account using your email, Google, or GitHub credentials. No credit card is required to start your 14-day trial.
After registering, you'll be taken directly to the pairing page. Scan the QR code with your phone to connect your WhatsApp account; the pairing guide covers re-pairing and session expiry. You can also access this anytime from the /dashboard.
Copy your Instance ID from the instance detail page. Then generate your API Key in /app/settings. These two values authenticate every API request.
x-api-key: YOUR_API_KEY x-instance-id: YOUR_INSTANCE_ID
Use the following cURL command to send a text message. Replace the placeholder values with your actual credentials and the recipient phone number (including country code, no + or spaces). The quickstart in the docs runs the same flow with the response payloads spelled out.
curl -X POST https://api.wsapi.chat/messages/text \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-H "x-instance-id: YOUR_INSTANCE_ID" \
-d '{
"to": "1234567890",
"text": "Hello from WSAPI!"
}'Related reading
How to Send WhatsApp Messages with Node.js
Send WhatsApp messages from Node.js in five minutes: install the SDK, send text and images, and receive incoming messages over SSE. Full working code.
Send WhatsApp Messages with PHP and Laravel
A working WhatsApp API integration in PHP, with a Laravel service class and a webhook receiver that verifies signatures properly. No SDK required.
How to Send WhatsApp OTP Codes (and Verify Them Safely)
Send one-time verification codes over WhatsApp from Python, with the parts most tutorials skip: hashed storage, expiry, attempt limits, and an SMS fallback.
Twilio WhatsApp Alternative: Flat Pricing, Five Minutes
Looking for a Twilio WhatsApp alternative? Compare per-message fees with flat per-instance pricing, and see the same send in code for both. Free 14-day trial.
WhatsApp Buttons and Lists API for Any Account
Send WhatsApp reply buttons, link buttons and pick-one lists with two REST calls, and read the choice back as an event. No Business API account.
WhatsApp Chatbot API: A Button-Driven Bot in Node.js
Build a WhatsApp chatbot with a REST API: verify webhooks, answer with tappable buttons and route the replies. Working Node.js code, about 60 lines.