WhatsApp API
Everything you need to automate and scale your WhatsApp Business communications
Send messages, manage templates, track delivery status, and integrate webhooks
Need help? Contact support@softennect.com or open a ticket from your dashboard.
API Channels
API Endpoints
Authentication
All API requests require authentication using your API key
API Key
Include your API key in the Authorization header for all requests:
Authorization: Bearer sk_live_1234567890abcdef1234567890abcdef12345678Security: Keep your API key secure and never expose it in client-side code. Use environment variables in production.
Send Message
Send one-way or two-way messages with text, media, or interactive content
POST
/v1/whatsapp/sendRequest Body
{
"to": "+27123456789",
"type": "text",
"text": {
"body": "Hello! Your order #12345 has been confirmed and will be delivered tomorrow."
},
"preview_url": false,
"messaging_product": "whatsapp"
}Response
{
"messaging_product": "whatsapp",
"contacts": [
{
"input": "+27123456789",
"wa_id": "27123456789"
}
],
"messages": [
{
"id": "wamid.HBgNMjcxMjM0NTY3ODkV"
}
]
}cURL Example
curl -X POST https://api.softennect.com/v1/whatsapp/send \
-H "Authorization: Bearer sk_live_1234567890abcdef1234567890abcdef12345678" \
-H "Content-Type: application/json" \
-d '{
"to": "+27123456789",
"type": "text",
"text": {
"body": "Hello! Your order #12345 has been confirmed."
}
}'Node.js Example
const response = await fetch('https://api.softennect.com/v1/whatsapp/send', {
method: 'POST',
headers: {
'Authorization': 'Bearer sk_live_1234567890abcdef1234567890abcdef12345678',
'Content-Type': 'application/json',
},
body: JSON.stringify({
to: '+27123456789',
type: 'text',
text: {
body: 'Hello! Your order #12345 has been confirmed.'
}
})
});
const data = await response.json();
console.log(data);Pro tip: Use the
preview_url parameter to control link previews. Set to false for better performance when sending URLs.