MSG91 MCP by usefulapi

v1.1.0
io.usefulapi/msg91 Checked 7 hours ago Published 3 days ago

Read SMS templates, delivery logs and analytics; send SMS and OTP codes, verify OTPs in MSG91.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

msg91_list_sms_templates List SMS templates

List the SMS templates (flows) in the account with their flow_id and name. Use the flow_id as template_id in msg91_send_sms. MSG91 API: GET /api/v5/flows.

msg91_get_sms_template_versions Get SMS template versions

Get every version of one SMS template, including which version is the default. MSG91 API: POST /api/v5/sms/getTemplateVersions.

ParameterTypeDescription
template_id *stringThe SMS template id (from msg91_list_sms_templates).

msg91_get_sms_logs Get SMS delivery logs

Get per-message SMS delivery logs (status, delivery time, recipient) for a window of at most 3 days that starts within the last 3 days. Filter by request_id (from msg91_send_sms) for one send. MSG91 API: POST /api/v5/report/logs/p/sms.

ParameterTypeDescription
end_date *stringEnd date yyyy-mm-dd (at most 3 days after start_date).
start_date *stringStart date yyyy-mm-dd (within the last 3 days).
fieldsstringComma-separated list of log fields to return (smaller payload).
limitintegerMaximum recipients to return (default 1000).
request_idstringOnly the messages of this send request id.

msg91_get_sms_analytics Get SMS analytics

Get aggregated SMS statistics for a date range of at most 31 days: totals, delivered, failed, rejected and credits. Dates from 1 Jan 2024 onward. MSG91 API: GET /api/v5/report/analytics/p/sms.

ParameterTypeDescription
end_date *stringEnd date yyyy-mm-dd (at most 31 days after start_date).
start_date *stringStart date yyyy-mm-dd (2024-01-01 or later).

msg91_get_otp_logs Get OTP logs

Get per-message OTP delivery logs for a window of at most 3 days that starts within the last 3 days. MSG91 API: GET /api/v5/report/logs/p/otp.

ParameterTypeDescription
end_date *stringEnd date yyyy-mm-dd (at most 3 days after start_date).
start_date *stringStart date yyyy-mm-dd (within the last 3 days).

msg91_get_otp_analytics Get OTP analytics

Get aggregated OTP statistics for a date range (verified, failed and sent counts). Use it for dashboards and delivery monitoring. MSG91 API: GET /api/v5/report/analytics/p/otp.

ParameterTypeDescription
end_date *stringEnd date yyyy-mm-dd.
start_date *stringStart date yyyy-mm-dd.

msg91_send_sms Send SMS (paid)

SEND SMS messages to real phone numbers using an approved SMS template; each message is billed. Confirm the recipients and template first. MSG91 API: POST /api/v5/flow.

ParameterTypeDescription
recipients *arrayRecipients, each with its own template variables.
template_id *stringThe SMS template id (from msg91_list_sms_templates).
schedule_timestringSend later at this time, format YYYY-MM-DD HH:MM:SS (optional).
short_urlbooleanShorten links in the message (true = on).

msg91_send_otp Send OTP (paid)

SEND a one-time code by SMS to a real phone number using an OTP template; billed per message. MSG91 generates and stores the code. MSG91 API: POST /api/v5/otp.

ParameterTypeDescription
mobile *stringRecipient in international format without '+', digits only (for example 919876543210).
template_id *stringThe OTP template id from the MSG91 OTP section (must contain ##OTP##).
otp_expiryintegerExpiry in minutes, 1 to 10080 (default 15).
otp_lengthintegerCode length, 4 to 9 digits (default 4).
variablesobjectOther template variables (Param1, Param2, ...), case sensitive.

msg91_resend_otp Resend OTP (paid)

RESEND the last one-time code to a phone number by SMS or voice call; billed per message. MSG91 API: GET /api/v5/otp/retry.

ParameterTypeDescription
mobile *stringRecipient in international format without '+', digits only (for example 919876543210).
retry_typestringSend as text (SMS) or voice call (default voice).

msg91_verify_otp Verify OTP

CHECK a code a user typed against the code MSG91 sent to that number. A used or expired code cannot be checked again. Returns type success or error with the reason. MSG91 API: GET /api/v5/otp/verify.

ParameterTypeDescription
mobile *stringRecipient in international format without '+', digits only (for example 919876543210).
otp *stringThe code the user entered.