Home/Answers/Push notification in one line
Answer

How do I send a push notification in one line of code?

With Lert, one line is the whole thing. A single HTTP POST to your link buzzes your iPhone in about a second. No account, no API key, no SDK — so there's nothing else to write.

Most "one line" notification snippets are only one line because the other ten lines — auth setup, client initialization, token handling — happen somewhere else. Lert is genuinely one line because your link is the credential. There's no setup hiding off-screen.

The entire setup — under 30 seconds

  1. Download the app. Open it once. No account to create.
  2. Copy your link. Your private link is on screen — one tap copies it.
  3. Paste it into one line. A single POST is the whole notification.

The one line

curl
curl -d "Build passed" "https://lert.dev/p/your-id"

That's a complete, working notification. Want a title too? Send JSON in the same single request:

fetch
fetch("https://lert.dev/p/your-id",{method:"POST",body:'{"title":"Alert","body":"CPU at 95%"}'})

No client to import, no key to pass, no Authorization header. The link carries everything.

Why it stays one line: there's no account, key, or SDK to initialize first. Compare that to Pushover (token + user key) or a Telegram bot (bot token + chat_id) — both need extra values before their "one line" runs.

Related things people ask

Perfect for deploy alerts, new sales, and form submissions. See the full docs.

Free is one channel and 50 notifications a day; Lert Pro is $2.99/month for unlimited.

Send your first one in 30 seconds.

Download Lert, copy your link, POST to it. Your iPhone buzzes.

Get the app iOS