Developer Docs

Integrate WhatsApp messaging into your app in less than 5 minutes.

YOUR_APP_API_KEY LOGIN TO GENERATE

API Endpoint (POST request only)

Send all your JSON payloads to this URL with Content-Type: application/json

https://wa.tamilanpromotion.in/api/v1/send.php

1 Send Template Message (OTP / Alerts)

Use this to send pre-approved Fast2SMS templates. Great for OTPs and notifications.

api_key * Your secret API key
to * Receiver number (e.g., 919876543210)
type * Must be template
template_id * Your Fast2SMS template ID
variables Array of values to insert `["Val1", "Val2"]`
{
    "api_key": "YOUR_APP_API_KEY",
    "to": "919876543210",
    "type": "template",
    "template_id": "15309",
    "variables": ["123456", "Login"]
}

2 Send Session Message (Custom Media/Text)

Enterprise Only

Send any custom message or media file. The user must have replied to you within the last 24 hours.

type * Must be session
msg_type * text, image, document
text (if text) The custom text content
url (if media) Direct public link to the file
{
    "api_key": "YOUR_APP_API_KEY",
    "to": "919876543210",
    "type": "session",
    "msg_type": "image",
    "url": "https://yourdomain.com/poster.jpg"
}