Technical Documentation

Sendinai

UNIVERSAL API DOCUMENT

Unlock the power of WhatsApp Business API for seamless Messaging, Automation, and Customer Engagement

Universal API
Automation Ready
Secure Messaging

Sendinai © 2026



01 Introduction

Unlock Potential with Sendinai

Sendinai is a powerful WhatsApp Business API solution designed to simplify marketing and enhance customer engagement seamlessly.

"Seamlessly integrating innovation and efficiency to help you connect, engage, and grow like never before."

Key Features & Capabilities

WhatsApp Broadcast Messaging

WhatsApp Live Chat

Automate responses based on user behavior

WhatsApp AI Chatbots

Customize chatbot behavior for platform needs

Organize & track conversations & preferences

Sendinai © 2026



02 API Configuration

API Endpoints

Configure your application to communicate with the Sendinai universal gateway. All requests should be directed to the following secure endpoint.

Base URL

https://api.sendinai.com/sender.php
SSL Secured

HTTP Method

POST

All API interactions use the POST method to ensure secure payload transmission.

Client
Sendinai API

Sendinai © 2026



03 Templates Overview

Predefined Message Templates

Sendinai provides a comprehensive suite of 9 standardized message templates, covering everything from simple text to rich media and interactive buttons.

"Standardized templates ensure consistency, compliance, and higher engagement rates across all your marketing campaigns."

Template Catalog

3.1 Text Message

3.2 Text with PDF

3.3 Text with Image

3.4 Text with Video

3.5 Text with Dynamic Button

3.6 Text with PDF & Button

3.7 Text with Image & Button

3.8 Text with Video & Button

3.9 Authentication OTP Messages

Sendinai © 2026



Templates 3.1 Text Message
Basic Template

Text Message

The most fundamental communication unit. This template sends a standard text-based notification using a predefined WhatsApp template structure.

"Sends a simple text message... The template and language are defined in the request."

Key Parameters

token

Secure authorization key

phone

Recipient number with country code (e.g., 91900...)

template_name

Unique ID of the message template (e.g., "hello_world")

Request Body (JSON)
POST /sender.php
{
"token": "********************************************",
"phone": "91900XXXXXXX",
"template_name": "hello_world",
"template_language": "en_US"
}
Response Payload
200 OK
{
"status": "success",
"message_id": 82936,
"message_wamid": "wamid.HBgMOT0NDE2FQIAERgSMkFGMEM1RTNFRkM4NjYyNTJEAA=="
}

Sendinai © 2026



Templates 3.2 Text with PDF
Media Template

Text with PDF Attachment

Enhance your communication by attaching PDF documents directly to your WhatsApp messages. Ideal for sending invoices, brochures, or reports alongside personalized text.

"Sends a message with a PDF attachment. It includes a personalized message and allows for a clickable file name."

Key Parameters

header

Direct URL to the PDF file

file_name

The display name for the PDF file

text1

Variable for personalized message text

Request Body (JSON)
POST /sender.php
{
"token": "******************************************",
"phone": "91900XXXXXXX",
"template_name": "test_doc",
"template_language": "en",
"header": "https://example.com/path/to/file.pdf",
"file_name": "samples",
"text1": "123456"
}
Response Payload
200 OK
{
"status": "success",
"message_id": 542150,
"message_wamid": "wamid.HBgMOTE5MDIzFQIAERgSOTRG..."
}

Sendinai © 2026



Templates 3.3 Text with Image
Rich Media Template

Text with Image

Designed for high engagement, this template includes a static image header alongside text. It is ideal for lead demos, product showcases, or onboarding flows where visual context is key.

"The header contains a static image URL... displayed at the top of the message to visually support the demo invitation."

Key Parameters

header

Direct URL to the image file (jpg/png)

template_name

E.g., "lead_demo_signup_flows"

type

Specific flow type (e.g., "flow")

Request Body (JSON)
POST /sender.php
{
"token": "******************************************",
"phone": "91900XXXXXXX",
"template_name": "lead_demo_signup_flows",
"template_language": "en",
"header": "https://example.com/path/to/yourfile.jpg",
"type": "flow"
}
Response Payload
200 OK
{
"status": "success",
"message_id": 42650,
"message_wamid": "wamid.HBgMOTE5zMzzFQIAERgSOTRGNDEzMzAzQzlCQTE0RDE5AA=="
}

Sendinai © 2026



Templates 3.4 Text with Video
Rich Media Template

Text with Video

Captivate your audience with dynamic video content. This template places a video player at the top of the message, perfect for product demos, announcements, or rich visual storytelling.

"Sends a WhatsApp message with a video header... Dynamic text content can be personalized based on the sender's message."

Key Parameters

header

Direct URL to the video file (mp4 recommended)

text1

Dynamic variable for personalization (e.g., Sender Name)

template_name

Must be set to "send_text_with_video"

Request Body (JSON)
POST /sender.php
{
"token": "****************************************",
"phone": "91900XXXXXXX",
"template_name": "send_text_with_video",
"template_language": "en",
"header": "https://example.com/path/to/yourfile.mp4",
"text1": "Brij Negi"
}
Response Payload
200 OK
{
"status": "success",
"message_id": 542650,
"message_wamid": "wamid.HBgMOTEFQIAERgSOTRGNDEzMzAzQzlCQTE0RDE5AA=="
}

Sendinai © 2026



Templates 3.5 Text with Dynamic Button
Interactive Template

Text with Dynamic Button

Enhance user engagement by including interactive buttons. This template sends a message with a dynamic button linked to a specific URL or action.

"The button is linked to a URL for user interaction, with personalized message content."

Key Parameters

text1

Personalized variable for message body (e.g., "123456")

buttonURL1

Dynamic URL suffix or value linked to the button

phone

Recipient number

Request Body (JSON)
POST /sender.php
{
"token": "*****************************************",
"phone": "91900XXXXXXX",
"template_name": "test_event",
"template_language": "en",
"text1": "123456",
"buttonURL1": "7860"
}
Response Payload
200 OK
{
"status": "success",
"message_id": 955678,
"message_wamid": "wamid.HBgMOTE5MDAzMSNkIyNjgxRDBDMjY1REExMUIwAA=="
}

Sendinai © 2026



Templates 3.6 Text with PDF & Dynamic Button
Rich Media + Interactive

Text with PDF & Dynamic Button

This powerful template combines document sharing with actionable engagement. It delivers a PDF attachment alongside a personalized message and a dynamic button that links to a specific URL, perfect for sending invoices, reports, or brochures with a call-to-action.

"Sends a message with both a PDF attachment and a dynamic button. The button allows quick access to a URL linked to the message."

Key Parameters

header

Direct URL to the PDF file

file_name

Display name for the attachment

text1

Variable for message personalization

buttonURL1

Dynamic suffix/ID for the button link

Request Body (JSON)
POST /sender.php
{
"token": "*****************************************",
"phone": "9190XXXXXXXX",
"template_name": "send_text_with_pdf_and_dynamic_button",
"template_language": "en",
"header": "https://example.com/path/to/yourfile.pdf",
"file_name": "Sample",
"text1": "Brij Negi",
"buttonURL1": "3125"
}
Response Payload
200 OK
{
"status": "success",
"message_id": 955678,
"message_wamid": "wamid.HBgMOTE5MDAzMzU0IyNjgxRDBDMjY1REExMUIwAA=="
}

Sendinai © 2026



Templates 3.7 Text with Image and Button
Rich Media & Action

Text with Image & Button

Designed for high engagement, this template combines a visual header (image) with dynamic text and an interactive button. It is commonly used for product inquiries, notifications, or welcome messages where visual context is crucial.

"Sends a message with an image header and a dynamic button. It includes dynamic text to personalize the message for the recipient."

Key Parameters

header

URL of the image displayed at the top

file_name

Label for the referenced file/media

text1

Sender identity or personalized name (e.g., "Brij Negi")

text2

Product or service context (e.g., "Software")

Request Body (JSON)
POST /sender.php
{
"token": "*********************************************",
"phone": "9190XXXXXXXX",
"template_name": "indiamart_enquire_whatsapp_notification",
"template_language": "en",
"header": "https://example.com/path/to/yourfile.jpg",
"file_name": "Sample",
"text1": "Brij Negi",
"text2": "Software"
}
Response Payload
200 OK
{
"status": "success",
"message_id": 955678,
"message_wamid": "wamid.HBgMOTE5MDAzMzU0MSNkIyNjgxRDBDMjY1REExMUIwAA=="
}

Sendinai © 2026



Templates 3.8 Text with Video & Button
Rich Media Template

Text with Video & Button

Maximize engagement by combining high-impact video content with actionable buttons. This template is perfect for product demos, tutorials, or promotional content where visual storytelling drives user interaction.

"The video enhances engagement, and the button provides easy interaction... allowing quick interaction or redirection."

Key Parameters

header

URL of the video file (mp4) displayed at the top

text1, text2

Dynamic content variables (e.g., Name, Product)

Action Button

Interactive element for quick user response

Request Body (JSON)
POST /sender.php
{
"token": "***************************************",
"phone": "9190XXXXXXXX",
"template_name": "send_text_with_video_and_button",
"template_language": "en",
"header": "https://example.com/path/to/yourfile.mp4",
"text1": "Brij Negi",
"text2": "Software"
}
Response Payload
200 OK
{
"status": "success",
"message_id": 955678,
"message_wamid": "wamid.HBgMOTE5MDAzMzU0MTIzFQIABDMjY1REExMUIwAA=="
}

Sendinai © 2026



Templates 3.9 Authentication OTP Message
Security Template

Authentication OTP Message

Designed for high-priority security flows. This payload sends a One-Time Password with a dedicated "Copy Code" button to streamline user verification.

"Sends an authentication OTP message... includes the OTP code, a support number, and a button for quick action."

Dynamic Parameters

text1

The One-Time Password (OTP) code (e.g., "123456")

text2

Support phone number included in message footer

buttonURL1

Value copied to clipboard when button is clicked

Request Body (JSON)
POST /sender.php
{
"token": "****************************************",
"phone": "9190XXXXXXXX",
"template_name": "copy_code_otp",
"template_language": "en_US",
"text1": "123456",
"text2": "1800-1111-1234",
"buttonURL1": "123456"
}
Response Payload
200 OK
{
"status": "success",
"message_id": 955678,
"message_wamid": "wamid.HBgMOTE5MDAzMzU0MTINjgxRDBDMjY1REExMUIwAA=="
}

Sendinai © 2026



14 Conclusion

Unlock Power with
Sendinai API

Your gateway to seamless WhatsApp Business automation and engagement.

Seamless Integration

Effortlessly connect marketing & support systems.

Scalable Broadcast

Engage thousands instantly with rich media templates.

Intelligent Automation

Real-time live chat and AI-driven chatbot responses.

Secure & Organized

Safe OTP flows and comprehensive conversation tracking.

Next Steps

1

Configuration

Set up your authentication token and approved templates in the Sendinai dashboard.

2

Testing

Use the provided JSON payloads to test each message type (Text, Media, Buttons).

3

Monitoring

Track delivery via message_id and wamid responses.

Seamlessly integrating innovation and efficiency to help you connect, engage, and grow like never before.

Sendinai © 2026