Setting up

Two ways to add M91 alerting to your project: Setup with AI Skill (recommended) or Setup Manually. You need your send link first. Get it in the Quickstart.

Setup with AI Skill

Copy this prompt and give it to your coding agent (Claude Code, Cursor, anything). It finds where alerts belong in your project and wires them up.

Setup prompt
Set up M91 alerting in this project, so a real person gets woken when something breaks.

Read https://m91-api.msg91.com/llms.txt and follow it.
Start with quickstart.md, then playbook.md, before writing any code.

My send link — ask me for it. It is a live credential, so store it the way this
project already stores its secrets, never in source.

Faster, if your tools let you install one:
npx skills add MSG91/m91-skill --skill m91-alerting -g

The prompt tells your agent to ask you for the send link, so it never ends up in your code.

1
Copy the prompt

Use the button above, or in the app: open your channel, tap the paper-plane icon, Setup With AI Skill.

2
Paste it into your coding agent

It reads the M91 guide, then asks you for your send link.

3
Your first alert rings this phone

The agent sends a test and tells you what came back.

➤How to send alerts to this channel?
Setup With AI SkillSetup Manually
Setup M91 with your A.I.
Copy the Setup Prompt
One prompt. Any coding agent.
01Copy the PromptOne tap on the button above.
02Give it to Your AgentPaste it into Claude Code, Cursor or any coding agent.
03Your Alerting Is IntegratedIts first alert rings this phone.
Setup With AI Skill

Setup Manually

1
Build the alert in the app

Tap the paper-plane icon, then Setup Manually. Choose the buttons people can tap.

2
Copy the code

Tap Copy cURL and paste it into your project. Send alert tries it on your phone first.

3
Check it works

Run the three checks below.

➤How to send alerts to this channel?
Setup With AI SkillSetup Manually
I’ll handle itSHARED✕
SeenPERSONAL✕
+ Add response option
Allow custom response
attachments
https://your-site/photo.jpg
callbackUrl
https://your-server/m91
Auto close alert
Send alert
Copy cURL
Setup Manually
# Raises nothing. Nobody is alerted.
curl -sS "$M91_SEND_LINK"
# You should see: the name of your channel
curl -sS -X POST "$M91_SEND_LINK" \
  -H "Content-Type: application/json" \
  -d '{"title":"M91 test","severity":"LOW","isAutoClose":true,
       "responseOptions":[{"label":"I am on it","effect":"SHARED"},
                          {"label":"Seen","effect":"PERSONAL"}]}'
# You should see: "delivered" above 0, and a phone ringing
# Tap a button on the phone first, then:
curl -sS "$M91_SEND_LINK/alerts/<_id from check 2>"
# You should see: "decision" with the button that was tapped

Check 1 must have nothing after the link. A ?title=… sends a real alert. If delivered is 0, nobody in the channel has accepted yet.

Next: Where to use M91 · What goes in an alert · API

No internet access?

If your environment cannot reach m91-api.msg91.com, say so, and hand over the curl to run.

Windows PowerShell?

Use Invoke-RestMethod, not curl.exe, or you get MALFORMED_JSON.