binwiederhier / ntfy

Send push notifications to your phone or desktop using PUT/POST
https://ntfy.sh
Apache License 2.0
18.54k stars 729 forks source link

Randomly generate topic/password when publishing a message #1215

Open tentme opened 2 weeks ago

tentme commented 2 weeks ago

:bulb: Idea

This differs from randomly generating a topic name via the web UI; in this case, the topic name is generated during the publishing process. For example, when you curl -d "test" ntfy.sh/ (to the baseurl), the server will respond with something like: {"id":"$random_id","time":$timestamp,"expires":$anothertimestamp,"event":"message","topic":"$randomly_generated_topic_name","message":"test"} So users don't have to pick the password themselves.

I'm new to ntfy, so I'm not sure if this already exists since the idea seems obvious. Please feel free to close this issue if it is already implemented or has been considered and confirmed not to be developed.