Sending a Test Message using Curl

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:

The 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.