Server alerts on your phone in 5 minutes, with no bot to write
The actual steps: sign up, create an app, send the first curl, then a disk-check script in cron and a tappable button on the card. Five minutes, start to finish.
This one is short and practical. The goal: a server (or a cron job, or any script that can make an HTTP request) sends a message to your phone within five minutes — no bot to write, no LINE Official Account to apply for, and nothing for the recipient to sign up for beyond installing an app.
I'm using Ting, which is my own product. If you'd like to weigh the alternatives first, read the LINE Notify alternatives comparison and come back.
Minute 1: sign up and create an app
- Sign up and verify your email.
- In the console, click Create app. Name it anything — "Server Alerts" works.
- Open the app you just created. You'll see an API token starting with
tapp_. Copy it.
An "app" in Ting terms is one notification room. One system of yours = one app. The trial is 14 days, no card required.
Minute 2: put your phone in the room
On that same app page there's a QR code and a join link. Install Ting Notifications on your phone and scan the QR. Your phone is now a recipient of "Server Alerts".
Want a teammate to receive it too? Send them the QR or the link — there's no per-person setup in the console. If you'd rather strangers couldn't join, turn on "Require a join PIN".
Minute 3: send the first message
curl -X POST https://api.mawin.one/api/apps/v1/notify \
-H "X-Ting-Api-Token: tapp_xxxxxxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{"message":"Hello from the server 👋"}'
Your phone should buzz within a few seconds. If it doesn't, check the token and that the phone scanned the QR of the same app the token belongs to.
Minute 4: make it actually useful
Here's what I run on a Linux box: check the disk every hour, and only send when it's over 85%.
#!/bin/sh
USED=$(df / --output=pcent | tail -1 | tr -dc '0-9')
if [ "$USED" -ge 85 ]; then
curl -s -X POST https://api.mawin.one/api/apps/v1/notify \
-H "X-Ting-Api-Token: $TING_TOKEN" \
-H "Content-Type: application/json" \
-d "{\"message\":\"<b>Disk on $(hostname) is running low</b><br>${USED}% used\"}"
fi
Add it to crontab as 0 * * * * and you're done.
The important part is only send when something needs doing. If you send "disk is fine" every hour, within two days you'll mute the app and miss the one that matters.
Minute 5: add a button
Messages accept a subset of HTML (<b>, <h3>, <img>, <button href> and so on). The one you'll use most is a button that opens a link.
{
"message": "<h3>Order #1042</h3>Customer: Somchai · 3 items · 450 THB<button href=\"https://your-system/orders/1042\">Open order</button>"
}
If you want a button to call your system directly (say "Accept order" writes to your backend immediately, with no web page in between), see actions in the message guide — Ting POSTs to your URL with an HMAC signature so you can verify it really came from Ting.
If you also want it in LINE
Everything above sends to the Ting app. If you already run a LINE OA and want the same message to appear there, connect LINE on the app page and add "channels": ["TING", "LINE"] to the body. The same HTML message is converted to a Flex Message for you. LINE's own sending charges still apply, exactly as they would without Ting.
Recap
- Sign up → create an app → copy the token
- Install the phone app → scan the QR
curl -X POST .../notifywith theX-Ting-Api-Tokenheader- Send only what needs action, and give it a button to act on
Full code in all 8 languages (Node, Python, PHP, C#, Go, Java, Ruby, curl) is on the API Reference page.