Start Your Cloud Communication
MSG91 API Documentation
Build powerful communication experiences with MSG91
MSG91 is a cloud communication platform that helps you connect with your users across SMS, WhatsApp, Email, and Voice.
Use MSG91 APIs and developer tools to build OTP verification, transactional messaging, notifications, campaigns, customer communication, and automated workflows.
[Get Started] ยท Login / Sign Up
๐ Get Started
Choose what you want to build:
Use case | Recommended solution |
|---|---|
๐ User verification & OTP | OTP APIs / OTP Widget |
๐ฑ Send SMS | SMS API |
๐ฌ Send WhatsApp messages | WhatsApp API |
๐ง Send Emails | Email API |
๐ Make Voice calls | Voice API |
๐ข Multi-channel communication | Campaign API |
๐ฅ Manage contacts & segments | Segmento |
I. Configure Your Communication Channel
Before using an API, configure the communication channel you want to use.
๐ฑ SMS
Configure your Sender ID, DLT registration, templates, and SMS settings before sending messages.
๐ฌ WhatsApp
Complete the required Meta/WhatsApp setup, connect your WhatsApp Business Account, and sync your templates with MSG91.
๐ง Email
Configure your sending domain and complete the required authentication before sending emails through the API.
๐ Voice
Configure your Voice services, templates, and calling setup.
Need help with configuration? Contact MSG91 Technical Support
II. Choose Your API
Once your communication channel is configured, select the API that matches your use case.
๐ OTP & Authentication
Build secure login and user verification flows using OTP.
Send OTP โ API Reference
Resend OTP โ API Reference
Verify OTP โ API Reference
OTP Widget โ Integration Guide
You can use the OTP APIs individually or integrate the OTP Widget to manage the complete OTP flow.
๐ฑ SMS
Send transactional and promotional SMS through the MSG91 API.
๐ฌ WhatsApp
Send WhatsApp template messages and other supported WhatsApp communications through MSG91.
๐ง Email
Send emails programmatically through MSG91.
๐ข Multi-Channel Messaging
Use the Campaign API to manage communication across multiple supported channels through a unified API.
Recommended when you want to manage communication across channels without integrating each channel separately.
III. Explore MSG91 Services
MSG91 provides additional tools to help you manage and automate your communication workflows.
๐ฌ Hello
A customer communication platform for Tickets, Live Chat, Bot, and Help Centre.
Use Hello to:
Manage customer support tickets
Facilitate live chat
Create internal teams
Connect with customers through calls or screen sharing
Create and publish Help Centre articles
๐ฅ Segmento
A contact management and campaign platform that helps you manage customer data and create targeted communication campaigns.
With Segmento, you can:
Import existing users using CSV
Add users and attributes through APIs
Create customer segments
Send SMS, WhatsApp, Email, and other supported communications
Automate campaigns based on customer segments and events
IV. API Reference
Explore detailed API documentation including endpoints, parameters, authentication, request examples, and responses.
Communication APIs
SMS โ Explore SMS APIs
WhatsApp โ Explore WhatsApp APIs
Email โ Explore Email APIs
OTP โ Explore OTP APIs
V. SDKs & Integrations
Integrate MSG91 into your applications using our available SDKs and platform integrations.
Mobile SDKs
Plugins & Integrations
MSG91 provides integrations and plugins for platforms and frameworks such as WordPress, Magento, and WHMCS.
VI. Developer Resources
Resource | Description |
|---|---|
API Reference | Explore endpoints, parameters, requests, and responses |
Help Center | Find product setup and configuration guides |
SDKs | Integrate MSG91 into your applications |
Integrations | Connect MSG91 with popular platforms |
Technical Support | Get assistance with configuration and API-related issues |
VII. Run MSG91 APIs from Your Terminal
DocStar provides a dedicated CLI for docs.msg91.com, allowing developers to discover and run published MSG91 APIs directly from the terminal.
Install the CLI
npm i -g docstar-editorInitialize MSG91 APIs
docstar-editor init docs.msg91.comThe CLI follows the structure:
Collection โ Module โ Endpoint
For example:
MSG91
โโโ WhatsApp
โโโ Send Template MessageYou can then run an API directly from your terminal:
docstar-editor msg91 whatsapp send-template-message \
--to "919876543210" \
--template "welcome"The CLI uses the published API contract and prompts you for required parameters when needed.
VIII. Connect MSG91 APIs with AI Clients
You can expose your installed MSG91 APIs as MCP tools for compatible AI clients such as Claude.
Run:
docstar-editor mcpThis enables AI clients to discover and call installed MSG91 APIs directly, without manually navigating through the documentation.
With the DocStar CLI, you can:
Discover published MSG91 APIs
Install required API modules
Run APIs directly from your terminal
Get prompted for required parameters
Expose installed APIs as MCP tools
Allow compatible AI clients to discover and call MSG91 APIs
๐ Ready to get started?
Start building with MSG91 APIs today.