binwiederhier / ntfy

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

Sending notifications with authentication #1132

Closed arxifythedev closed 5 months ago

arxifythedev commented 5 months ago

:question: Question

Hello! I have taken the permissions from regular users to send notifications through the server.yml file, thus making sending notifications from any means other than the web app (logged in through an admin account) not possible without authentication. I would like to know how to be able to authenticate myself through cURL to send a notification. Perhaps using an access token?

Thanks in advance and I hope you can answer my question.

wunter8 commented 5 months ago

There are many examples in the docs: https://docs.ntfy.sh/publish/#authentication

arxifythedev commented 5 months ago

Thank you very much! Fixed.