API v2.0 · Production
WhatsApp Business API
Complete API reference for Botify's WhatsApp Business integration. Send templates, media, interactive messages, products, and order updates through a single unified endpoint.
POST
https://login.botify.in/api/whatsapp/externalSend Template Message
Send a pre-approved WhatsApp template message with dynamic parameters. Templates must be approved by Meta before use. Supports marketing, utility, and authentication categories.
All requests require a Bearer token: Authorization: Bearer YOUR_API_KEY
| Parameter | Type | Required | Description |
|---|---|---|---|
to | string | Required | Recipient phone number with country code (e.g. 919988776655) |
type | string | Required | Set to "template" |
templateName | string | Required | Approved template name (e.g. welcome_message) |
templateData | string[] | Optional | Array of template variable values (e.g. ["John", "Acme Corp"]) |
category | string | Optional | Template category: MARKETING, UTILITY, or AUTHENTICATION. Defaults to MARKETING |
language | string | Optional | Template language code (e.g. en, hi). Defaults to en |
templateHeader | object | Optional | Header media: { type: "IMAGE"|"VIDEO"|"DOCUMENT", mediaUrl: "..." } |
waAccountId | string | Optional | Specific WhatsApp account ID (uses first connected account if omitted) |
Code Example
// Send a WhatsApp template message
fetch('https://login.botify.in/api/whatsapp/external', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
to: '919988776655',
type: 'template',
templateName: 'welcome_message',
templateData: ['John', 'Acme Corp'],
category: 'MARKETING'
})
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));{
"success": true,
"messageId": "msg_abc123"
}Authentication
Include your API key as a Bearer token in the Authorization header:
Authorization: Bearer YOUR_API_KEY
Never expose your API key in client-side code. Generate keys from Settings > API Keys.
Ready to build?
Sign up, connect WhatsApp in under 30 minutes, and generate your first API key to start sending messages.
Create Free Account