WhatsApp API
API documentation for external application integrationBase URL
API
Replace localhost with your public SaaS domain when deployed.
Authentication
All API requests require the client's API key.
Authorization: Bearer YOUR_API_KEY
Never share the API key publicly.
POST Send Message
/send-message
Request
{
"to": "919351321723",
"message": "Hello from my application"
}
Response
{
"success": true,
"messageId": "wamid..."
}
POST Send Document
/send-document
Request
{
"to": "919351321723",
"documentUrl": "https://example.com/report.pdf",
"fileName": "report.pdf",
"caption": "Your report"
}
Response
{
"success": true,
"message": "Document sent successfully."
}
POST Send Template
/send-template
Request
{
"to": "919351321723",
"templateName": "appointment_reminder",
"languageCode": "en",
"parameters": [
"Atul",
"15 August 2026",
"10:30 AM"
]
}
Response
{
"success": true,
"message": "Template sent successfully."
}