In order to send a notification that will be issued under a configured application in Gotify, the following curl command should do the job:
curl -i -X POST -H "Content-Type: application/json" -H "X-Gotify-Key: APPLICATION_TOKEN" --data '{ "message": "test", "title": "test" }' https://GOTIFY.TLD/message
where:
APPLICATION_TOKEN
is the application token configured using the Gotify interface,GOTIFY.TLD
is the hostname of the Gotify serverThe payload, namely the JSON string passed to the data parameter, is used here in-line, but it can also be sent from a local file.
For the contact, copyright, license, warranty and privacy terms for the usage of this website please see the contact, license, privacy, copyright.