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.

POSThttps://login.botify.in/api/whatsapp/external

Send 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

ParameterTypeRequiredDescription
tostringRequiredRecipient phone number with country code (e.g. 919988776655)
typestringRequiredSet to "template"
templateNamestringRequiredApproved template name (e.g. welcome_message)
templateDatastring[]OptionalArray of template variable values (e.g. ["John", "Acme Corp"])
categorystringOptionalTemplate category: MARKETING, UTILITY, or AUTHENTICATION. Defaults to MARKETING
languagestringOptionalTemplate language code (e.g. en, hi). Defaults to en
templateHeaderobjectOptionalHeader media: { type: "IMAGE"|"VIDEO"|"DOCUMENT", mediaUrl: "..." }
waAccountIdstringOptionalSpecific 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