Send WhatsApp messages with one API request
WAservix WhatsApp API Gateway sends a WhatsApp message with a single POST: who to send to and what to send. Add an image, a document or a voice note with one extra field.
- One POST request
- Media by URL
- Message IDs
- Webhook receipts
Send WhatsApp message API request
curl -X POST https://tekservix.com/waservix/api/send-message \
-H "Authorization: Bearer $WASERVIX_KEY" \
-H "Content-Type: application/json" \
-d '{"to":"+447700900123","text":"Your parcel is out for delivery."}'to can be a phone number in international format, a group ID or a channel ID.
WhatsApp API to send message with media
Add imageUrl, videoUrl, audioUrl or documentUrl (with fileName). Set ptt to send audio as a voice note, and replyTo to quote an earlier message.
API WhatsApp send message from any language
// Node.js
await fetch('https://tekservix.com/waservix/api/send-message', {
method: 'POST',
headers: { Authorization: 'Bearer ' + process.env.WASERVIX_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({ to: '+447700900123', text: 'Hello from Node' }),
});Guides for PHP, Python, Java, .NET, Go and more are in the docs.
WhatsApp message API responses and status
Each send returns a message ID. GET /messages/{id}/info returns its status, POST /messages/{id}/resend retries a failed one, and webhooks report delivered and read receipts.
WhatsApp business API enviar mensagem Python
import os, requests
requests.post('https://tekservix.com/waservix/api/send-message',
headers={'Authorization': 'Bearer ' + os.environ['WASERVIX_KEY']},
json={'to': '+5511999998888', 'text': 'Olá! Seu pedido foi enviado.'})Para enviar mensagem com Python, basta uma requisição POST com o número e o texto.
Check a number before you send
GET /on-whatsapp/{phone} tells you whether a number uses WhatsApp, so you can fall back to SMS with SMS Gora when it does not.
Pay per WhatsApp number, not per message
Every plan includes unlimited messages, the full API, webhooks, campaigns and auto-replies.
Not sure yet? Try WAservix free for 3 days — no card, one device, one number at a time, with a 2-minute wait between messages.
Sending by API questions
How do I authenticate?
With your device key in the Authorization header: Bearer wpk_…
Can I send to a group?
Yes, on paid plans, by passing the group ID in to.
How do I know a message was read?
Read receipts arrive at your webhook.
Is it compatible with WaSender?
Yes, WaSender-style endpoints are accepted.
Send your first message by API
Free for 3 days with no card: one number, one message at a time. Plans from $4.50/month after.
Get startedMore about WAservix: WAservix overview · WhatsApp API · WhatsApp Business API · WhatsApp API pricing · Free WhatsApp API trial · WhatsApp link generator · WAservix vs Cloud API · API documentation guide · WhatsApp API providers · Alternatives · PHP WhatsApp API · WhatsApp bot API · Integrations · Bulk messaging · Use cases · Calling API · Developer docs · Send WhatsApp message API · WhatsApp OTP API