| API | Protocol | Base URL | Docs | Reference | OpenAPI | SDKs |
|---|---|---|---|---|---|---|
| Main | rest | https://api.msg91.com/ | link | — | — | — |
Actions (31)
SMS · 14
- Add SMS TemplatePOST /sms/addTemplate
Create a new SMS template (template content with variables).
documented - Add SMS Template VersionPOST /sms/addTemplateVersion
Create a new version of an existing SMS template.
documented - Get SMS Template DetailsGET /sms/getTemplateDetails
Retrieve details for a specific SMS template.
documented - Get SMS Template VersionsPOST /sms/getTemplateVersions
List all versions for an SMS template.
documented - Mark SMS Template DefaultGET /sms/markActive
Mark a given template version as the default/active version.
documented - SMS AnalyticsGET /report/analytics/p/sms
Retrieve SMS analytics over a date range.
documented - SMS LogsGET /report/logs/p/sms
Retrieve SMS logs over a recent date window.
documented - Save DraftPOST /api/add_draft.php
Save an SMS draft via the draft API.
documented - Send SMSPOST /api/v2/sendsms
Send one or more SMS messages via MSG91 v2 Send SMS API.
documented - Send SMS (XML)POST /api/postsms.php
Send SMS using the XML API (POST to postsms).
documented - Send SMS (XML)GET /api/postsms.php
Send SMS via XML (POST to postsms.php).
documented - Send SMS (v2 Text SMS)POST /api/v2/sendsms
Legacy v2 Send SMS interface (JSON/XML/HTTP variants).
documented - Send SMS via HTTP (legacy)POST /api/sendhttp.php
Legacy HTTP-based SMS submitter.
documented - Send SMS via HTTP (legacy)POST /sendhttp.php
Submit SMS via the legacy HTTP endpoint (sendhttp.php).
documented
OTP · 6
- Retry OTPGET /api/retryotp.php
Retry sending OTP via SMS/Voice (legacy v1).
documented - Retry OTP (legacy)GET /api/retryotp.php
Legacy Retry OTP API.
documented - Send OTPGET /api/sendotp.php
Send a one-time password (legacy v1 OTP API).
documented - Send OTP (legacy)GET /api/sendotp.php
Legacy Send OTP API.
documented - Verify OTPGET /api/verifyRequestOTP.php
Verify an OTP sent via MSG91 OTP API (legacy v1).
documented - Verify OTP (legacy)GET /api/verifyRequestOTP.php
Legacy Verify OTP API.
documented
Segmento · 6
- Add ContactPOST /api/add_contact.php
Add a new contact to a phonebook group.
documented - Add GroupGET /api/add_group.php
Create a new contact group.
documented - Delete ContactGET /api/delete_contact.php
Delete a contact from the phonebook.
documented - Edit ContactPOST /api/edit_contact.php
Update an existing contact in the phonebook.
documented - List ContactsGET /api/list_contact.php
List contacts in a phonebook (filter by group if provided).
documented - List GroupsGET /api/list_group.php
List all contact groups in the phonebook.
documented
Campaign · 5
- Add Receivers to CampaignPOST /campaign-beta/api/campaigns/{campaign_id}/receivers
Add receivers to a Beta campaign (by campaign_id).
documented - Remove Receivers from CampaignDELETE /campaign-beta/api/campaigns/{campaign_id}/receivers
Remove receivers from a Beta campaign.
documented - Send SMS (Campaign)POST /api/v2/sendsms
Send SMS via the CAMPAIGN path (v2).
documented - Send SMS via FlowPOST /api/v5/flow/
Send SMS using a Flow (OneAPI Flow) by flow_id and recipients.
documented - Send SMS via Flow (v5)POST /api/v5/flow/
Send SMS using a Flow with flow_id and recipients.
documented