Developers
Send messages from your own software. One address, one key, and the same reply shape for every request.
Start here
1. Create a key
Sign in, open API keys in your dashboard and create a key. Keep it on your server. Never put it in a web page or a mobile app.
2. Send the key with every request
Every request goes to this address:
Base addresshttps://wasms.net/api/public/v1
and carries your key in this header:
HeaderAuthorization: Bearer YOUR_WASMS_API_KEY
3. Send a WhatsApp message
A complete example. Replace YOUR_WASMS_API_KEY with your key and the number with your own phone, country code first.
curlcurl -X POST https://wasms.net/api/public/v1/whatsapp/send \ -H "Authorization: Bearer YOUR_WASMS_API_KEY" \ -H "Content-Type: application/json" \ -d '{"to": "923001234567", "message": "Hello from my software"}'
API guides
- Create and manage API keysGenerate API keys so you can send messages, manage contacts, and trigger campaigns from your own code.
- Send a WhatsApp message with the APIOne request sends a WhatsApp message from your own software. Ready examples in curl, PHP, Python and Node.js.
- Webhooks: be told when something happensWaSMS calls your own server when a customer messages you, a lead form is filled in or a campaign finishes.
Reference and files
No code needed
If you use one of these, follow its guide instead of writing code.
Something not working? Contact support and include the reply your request received.