Quickstart
From zero to a notification on your screen in about two minutes.
You need a meslzy account with a verified email address, and a browser that supports Web Push (check yours).
1. Create a project#
Open the dashboard, sign in with your meslzy account and click New project. Name it after the app or system that will send notifications.
2. Add a recipient#
Create a recipient named me. A recipient is who you send to; its name is what your code will use. Names are lowercase letters, digits, - and _.
3. Connect this browser#
On the recipient's page, click Connect this browser and allow notifications when the browser asks. To connect your phone instead, create a connect link and open it on the phone (how).
4. Create an API key#
Open API keys, create a key in Live mode and copy it. The full key is shown once. Put it in your server's environment:
⫻
shell
5. Send a notification#
Push answers right away:
⫻
202 Accepted
attempts is the number of connected browsers the notification was queued for. A moment later the notification appears on your screen.
6. Check what happened#
Read the notification back with its id to see each attempt's status:
⫻
curl
accepted means the browser vendor's push service took the message. It does not prove the notification was seen. Read Statuses before you build on it.Next steps#
- Connect other people's browsers with connect links.
- Add images, buttons and a click URL with message options.
- Make retries safe with idempotency.