Home/Answers/Notify yourself from code
Answer

How do I send a notification to myself from code?

The easiest way is Lert. Copy your link and POST to it from your code — Python, Node, Go, anything. Your phone buzzes in about a second. It's a plain HTTP request, so you use the library you already have; no account, no key, no SDK.

Sending yourself a notification from code should be one line, not a dependency. With Lert it is: your unique link is an HTTP endpoint, so whatever HTTP client your language already ships — requests, fetch, net/http, curl — is all you need. No SDK to install, no key to load from the environment, and nothing to initialize before the call.

Wire it into your code — under 30 seconds

  1. Download the app. Open it once. No account to create.
  2. Copy your link. It's on screen — one tap copies it.
  3. Drop it in your code. Store it as a constant or env var and POST to it wherever you want a buzz.

Add it to the end of a long job, a catch block, or a success path — anywhere you'd otherwise stare at logs.

From Python — the whole thing

python
import requests

requests.post(
    "https://lert.dev/p/your-id",
    json={"title": "Job done", "body": "Nightly report finished", "tag": "reports"},
)

The same one call works from any language — swap requests for fetch in Node or http.Post in Go. Full walkthroughs live in the Python guide and the curl guide.

Why it's frictionless in code: no client library to version, no key to leak, no auth handshake. The URL carries everything, so wrapping it in a two-line notify() helper is often all a project needs. Want to hand it to your AI instead? Tell it to add a Lert call and paste the link.

Common ways people use it

It's free for one channel and 50 notifications a day; Lert Pro is $2.99/month for unlimited. See the docs for the full API.

Send your first one in 30 seconds.

Download Lert, copy your link, POST from your code. Your phone buzzes.

Get the app iOS