Join our mission to empower businesses worldwide with seamless WhatsApp communication. Earn generous commissions while helping companies grow.
Get up and running with WaCloud API in minutes
Sign up for a WaCloud account and generate your unique API key from the dashboard.
Use our REST API endpoints to send your first WhatsApp message programmatically.
Implement webhooks, handle responses, and scale your messaging to thousands of users.
Ready-to-use code examples in popular programming languages
curl -X POST https://api.wacloud.app/v1/messages/send \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"to": "+1234567890",
"message": "Hello from WaCloud!",
"type": "text"
}' const response = await fetch('https://api.wacloud.app/v1/messages/send', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
to: '+1234567890',
message: 'Hello from WaCloud!',
type: 'text'
})
});
const result = await response.json();
console.log(result); import requests
url = "https://api.wacloud.app/v1/messages/send"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
}
data = {
"to": "+1234567890",
"message": "Hello from WaCloud!",
"type": "text"
}
response = requests.post(url, headers=headers, json=data)
result = response.json()
print(result) <?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api.wacloud.app/v1/messages/send',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => array(
'Authorization: Bearer YOUR_API_KEY',
'Content-Type: application/json'
),
CURLOPT_POSTFIELDS => json_encode(array(
'to' => '+1234567890',
'message' => 'Hello from WaCloud!',
'type' => 'text'
))
));
$response = curl_exec($curl);
curl_close($curl);
$result = json_decode($response, true);
print_r($result);
?> WaCloud API uses Bearer token authentication. Include your API key in the Authorization header of every request.
Authorization: Bearer YOUR_API_KEY_HERE
{
"status": "success",
"message": "Message sent successfully",
"data": {
"message_id": "msg_1234567890",
"to": "+1234567890",
"status": "sent",
"timestamp": "2024-12-20T10:30:00Z"
}
} {
"status": "error",
"message": "Invalid phone number format",
"error": {
"code": "INVALID_PHONE",
"details": "Phone number must include country code"
}
} Get your API key and start integrating WaCloud into your applications today.