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.

Configure SMS โ†’


#

๐Ÿ’ฌ WhatsApp

Complete the required Meta/WhatsApp setup, connect your WhatsApp Business Account, and sync your templates with MSG91.

Configure WhatsApp โ†’

Get Started with WhatsApp โ†’


#

๐Ÿ“ง Email

Configure your sending domain and complete the required authentication before sending emails through the API.

Configure Email โ†’


#

๐Ÿ“ž Voice

Configure your Voice services, templates, and calling setup.

Configure Voice โ†’

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.

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.

Send SMS API โ†’


#

๐Ÿ’ฌ WhatsApp

Send WhatsApp template messages and other supported WhatsApp communications through MSG91.

WhatsApp API Reference โ†’


#

๐Ÿ“ง Email

Send emails programmatically through MSG91.

Send Email API โ†’


#

๐Ÿ“ข Multi-Channel Messaging

Use the Campaign API to manage communication across multiple supported channels through a unified API.

Campaign API / Help Guide โ†’

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

Explore Hello โ†’


#

๐Ÿ‘ฅ 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

Explore Segmento โ†’


#

IV. API Reference

Explore detailed API documentation including endpoints, parameters, authentication, request examples, and responses.

#

Communication 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.

Explore Integrations โ†’


#

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-editor
#

Initialize MSG91 APIs

docstar-editor init docs.msg91.com

The CLI follows the structure:

Collection โ†’ Module โ†’ Endpoint

For example:

MSG91
 โ””โ”€โ”€ WhatsApp
      โ””โ”€โ”€ Send Template Message

You 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 mcp

This 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.

Login / Sign Up โ†’